• $dn = $entradas [0] ["dn"] [0];
    [...]
    $ldap_bind = @ldap_bind ( $ldap_con, $ldap_user, $password );

    Since $ldap_user and $dn aren’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_user is 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.

    http://wordpress.org/plugins/helldap/

Viewing 1 replies (of 1 total)
  • This adjustments were necessary for me, too.
    Otherwise this plugin is just awsome. Simple to use, easy to extend and adjust.
    Nice work!

Viewing 1 replies (of 1 total)

The topic ‘$ldap_user mistaken for $dn?’ is closed to new replies.