So I'm trying to authenticate a user who has a password on the LDAP server in the {algorithm}hash
format. I try to log the user in like this:
with Connection(server, "<user>", "plaintext-password") as conn:
conn.bind()
print(conn.result)
This returns {'result': 49, 'description': 'invalidCredentials', 'dn': '', 'message': '', 'referrals': None, 'saslCreds': None, 'type': 'bindResponse'}
It gives invalid credentials on bind even though this is the correct plain text version of the password. How do I give the instruction to hash the password to authenticate, because I couldn't find anything on the internet?
Thanks in advance.