Before applying to IT professionals, check if the value in the line has passed
$ ldapbind = ldap_bind ($ ldapconn, $ ldaprdn, $ _POST ["password"]);
Right, you probably already checked this, but do
var_dump ($ ldaprdn); var_dump ($ _ POST ["password"]);
and make sure the data is accurate.
Manually enter data as
$ ldapbind = ldap_bind ($ ldapconn, "username", "password");
Also check if you need to specify all DNs, for example CN = Username, DC = xxx, DC = com for the username.
Also sometimes you need to specify a name, for example, "Username" and not "user.name", because it can be saved.
If all this fails, you can eat the head of IT professionals: -P
source share