自助修改 ldap 用户密码
Docker 部署
docker run --restart=always -d -p 8000:8000 --env LDAP_HOST="192.168.1.250" --env LDAP_ADMIN_USER="root.ops.net" --env LDAP_PASSWORD="PASSWD" --name ldap-password lghost/ldap-password:latest
# Use the Manager account
调试打印输出
docker -it -p 8000:8000 -rm ...省略
Django version 3.0.5, using settings 'website.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C
[10/Apr/2020 00:09:49] "GET / HTTP/1.1" 200 4824
LDAP connect success!
[10/Apr/2020 00:09:58] "POST / HTTP/1.1" 200 18
LDAP connect success!
user: test modify passwd success
git clone https://gitee.com/attacker/ldap-password.git
pip install -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com requirements.txt
python manage.py runserver 0.0.0.0:8000
# 启动服务
ldap.conf
[ldap]
LDAP_HOST=root.ops.net
LDAP_ADMIN_USER=root.ops.net
LDAP_PASSWORD=xxxxxxx
扫码加入 运维大本营
项目基于 GPLv3 协议, 详细请参考 LICENSE 。