1、需求
定期同步企业微信的用户信息到 LDAP 中,当有新用户时,会自动发送LDAP的账号密码给该用户邮箱。
2、环境
python 3.x
需要安装两个模块
pip install ldap3 requests
3、代码文件
代码托管于 Github
ldap3语法:https://ldap3.readthedocs.io/searches.html
定期同步企业微信的用户信息到 LDAP 中,当有新用户时,会自动发送LDAP的账号密码给该用户邮箱。
python 3.x
需要安装两个模块
pip install ldap3 requests
代码托管于 Github
ldap3语法:https://ldap3.readthedocs.io/searches.html
转载于:https://www.cnblogs.com/weavepub/p/11549762.html