# ldap-password
**Repository Path**: goooood/ldap-password
## Basic Information
- **Project Name**: ldap-password
- **Description**: 自助修改ldap用户密码
- **Primary Language**: Python
- **License**: GPL-3.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 5
- **Created**: 2020-09-21
- **Last Updated**: 2020-12-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# ldap-password
## 介绍
自助修改 ldap 用户密码
### 环境






### 安装教程
Docker 部署
```shell
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 \
> 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
### 本地部署
```shell
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
# 启动django服务
```
### 文件配置
ldap.conf
```config
[ldap]
LDAP_HOST=root.ops.net
LDAP_ADMIN_USER=root.ops.net
LDAP_PASSWORD=xxxxxxx
```
### 使用说明

---
扫码加入 **运维大本营**

## License
项目基于 GPLv3 协议, 详细请参考 [LICENSE](LICENSE) 。