You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is often a case in Active Directory when a new user is created or the password of an existing user has been reset with the option "User must change password on the next logon"
Is there a way for such a user to change his password via ldap3?
As I understand, https://ldap3.readthedocs.io/ldap3.extend.microsoft.html requires a successful bind before changing password.
When the option above is set for the user, connection.bind() always returns False.
If I try to change the password without bind it returns False as well: server = Server('ldap://addc.somedomain.org', get_info=ALL) conn = Connection(server, user="someuser@somedomain.org", password="P@ASSwword1") conn.start_tls() => True conn.bind() => False dn = 'My well known DN' conn.extend.microsoft.modify_password(user=dn, old_password="P@ASSwword1", new_password="NewPass!#@rd", controls=None) => False`
The text was updated successfully, but these errors were encountered:
It is often a case in Active Directory when a new user is created or the password of an existing user has been reset with the option "User must change password on the next logon"
Is there a way for such a user to change his password via ldap3?
As I understand, https://ldap3.readthedocs.io/ldap3.extend.microsoft.html requires a successful bind before changing password.
When the option above is set for the user, connection.bind() always returns False.
If I try to change the password without bind it returns False as well:
server = Server('ldap://addc.somedomain.org', get_info=ALL)
conn = Connection(server, user="someuser@somedomain.org", password="P@ASSwword1")
conn.start_tls() => True
conn.bind() => False
dn = 'My well known DN'
conn.extend.microsoft.modify_password(user=dn, old_password="P@ASSwword1", new_password="NewPass!#@rd", controls=None) => False`The text was updated successfully, but these errors were encountered: