Python 3.5, ldap3 and modify_password()

后端 未结 4 1182

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:01

    ldap3.modify_password() as of version 0.9.4.2 doesn't work with Active Directory, because it uses the Password Modify Extended Operation, which isn't supported by AD. MS found a way to do things different with AD, it seems. The ldap3 author (cannatag) was aware of this and added ad_modify_password() shortly after. You'll have to use a newer release of ldap3.

提交回复
热议问题