Closed ImapUkua closed 1 year ago
Are you sure that the bind with ldap3
is successful?
When I tried to run your ldap3
example code the conn.result
property also contained an authentication error for me.
You're right, my bad. The ldap3
code just didn't raise an exception, but the result contains the same error.
When connecting to an Active Directory LDAP server with a user having the attribute 'pwdLastSet = 0', bonsai throws an AuthenticationError. This behaviour is different from the ldap3 library where the bind succeeds.
The attribute 'pwdLastSet = 0' indicates that the user must change their password upon the next succesfull login, so the currently entered credentials should still be valid when connecting. More info on pwdLastSet: https://ldapwiki.com/wiki/Pwd-Last-Set%20attribute
Minimal code snippet with ldap3:
Minimal code snippet with bonsai:
Resulting stack trace: