$ldap_user mistaken for $dn?
-
$dn = $entradas [0] ["dn"] [0]; [...] $ldap_bind = @ldap_bind ( $ldap_con, $ldap_user, $password );Since
$ldap_userand$dnaren’t used elsewhere in helldap.php I think you must have mistaken one for the other. In the current implementation login never fails, because$ldap_useris empty. After changing the above code to$dn = $entradas [0] ["dn"]; [...] $ldap_bind = @ldap_bind ( $ldap_con, $dn, $password );it works just fine.
$entradas[0]["dn"]was no array but a string, so I also removed the index[0]. I don’t know if this would work in every other environment, since I don’t understand LDAP after all 😉Thanks for helldap anyways! It helped me a lot getting to understand LDAP at least superficially.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘$ldap_user mistaken for $dn?’ is closed to new replies.