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 ##启动服务

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值