# 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 用户密码 ### 环境 ![Python](https://img.shields.io/badge/python-3.6+-blue.svg?style=plastic) ![django](https://img.shields.io/badge/django-3.0.5-blue.svg?style=plastic) ![bootstrap](https://img.shields.io/badge/bootstrap-3.3.7-green.svg?style=plastic) ![python-ldap](https://img.shields.io/badge/python_ldap-3.2.0-green.svg?style=plastic) ![bootstrap](https://img.shields.io/badge/docker-19.03.2-orange.svg?style=plastic) ![Django CI](https://github.com/L00J/ldap-password/workflows/Django%20CI/badge.svg?event=push) ### 安装教程 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 ``` ### 使用说明 ![home](doc/home.jpeg) --- 扫码加入 **运维大本营** ![qq](doc/qq.png) ## License 项目基于 GPLv3 协议, 详细请参考 [LICENSE](LICENSE) 。