Failed to change password with ldap3
I am trying to create a code with ldpa3 so that an administrator account can change the password of other users
ldap3 import *
server = Server('
ldap://XX.XX.XX.XX', use_ssl=False)
conn = Connection(server, user="userAdmin@dominio",password="adminpassword", auto_bind=True)
response = conn.search('dnUserAModifyPassword', '(searchcriteria)', attributes=['*'])
print(response)
password_old = "oldPasswordOfUser"
password_New = "newUserPassword"
dn=conn.response[0]["dn"]
res =...