Python 3.5, ldap3 and modify_password()

后端 未结 4 1224

I\'ve been pulling my hair out trying to send a request to update my own password via a script. here is the code:

#!/usr/bin/python3.5

from ldap3 import Server,         


        
4条回答
  •  旧巷少年郎
    2021-01-25 18:00

    Try with ldaps:// instead of ldap://. or dont use the scheme at all and pass use_ssl=True in the Server definition. AD connection must use ssl to modify the password.

提交回复
热议问题