openldap用户自助修改密码--ldap_passwd-webui

git 拉取代码

git clone https://github.com/jirutka/ldap-passwd-webui.git
安装Requirements
Python 3.x
bottle
ldap3 2.x
下载Anaconda3-4.4.0-Linux-x86_64.sh安装python3环境

#

安装bottle
pip install bottle

#

https://files.pythonhosted.org/packages/bf/5b/4848db7aa210a27793d7fc218c7deb588a5f2b23f5359a0537285ee1ee60/ldap3-2.5.tar.gz
pip install ldap3-2.5.tar.gz
配置文件
cd ldap-passwd-webui
cp settings.ini.example settings.ini
vi settings.ini
[html]
page_title = Change your password on xxx.com
[ldap]
host = 192.168.226.132 ##ldaphost
port = 389 ##端口
use_ssl = false ##关闭ssl
base = dc=2345,dc=com ##ldap的域
search_filter = uid={uid}

Uncomment for AD / Samba 4

type = ad

ad_domain = ad.example.org

search_filter = sAMAccountName={uid}

[server]
server = auto
host = 192.168.226.133 ##服务监听IP(本机)
port = 8080 ##服务端口

#

python app.py ##启动服务

猜你喜欢

转载自blog.csdn.net/arno_e/article/details/80534940