I was passing wrong credentials(password) in below code
conn = Connection(server, account_username, account_password, auto_bind=True)
and getting below error
ldap3.core.exceptions.LDAPBindError: automatic bind not successful - invalidCredentials
When I do the same without auto_bind argument in connection.
conn = Connection(server, account_username, account_password)
conn.bind()
conn was not throwing any error. conn.bind() is False. Help would be appreciated. Thanks
There are two ways to accomplish this:
connection.last_error
field.result
raise_exceptions=True
during initialization of theldap3.Conneciton
result