I need to authenticate a user using PHP and LDAP. I can successfully, connect to the LDAP server. ldap_bind() annonymously. And ldap_search(). But if I want to authenticate the username(userdn)/password pair by doing ldap_bind() with that pair - I get an "invalid credentials" error (however, the userdn and password are DEFINITELY valid!)
I know that the passwords stored on the LDAP server are encrypted - do I have to do some sort of encryption in the PHP script before I do ldap_bind()?
What else would cause that invalid credentials error?
I know that the passwords stored on the LDAP server are encrypted - do I have to do some sort of encryption in the PHP script before I do ldap_bind()?
What else would cause that invalid credentials error?