Author Topic: LDAP %dn bug or not?  (Read 6717 times)

Offline salix

  • Newbie
  • *
  • Posts: 1
LDAP %dn bug or not?
« on: February 05, 2012, 11:54:19 PM »
Hi.

Ich think I've found a bug in the LDAP connection. Or I missunderstud the comment...
the comment in main.inc.php is
// %dn - DN found by ldap search when search_filter/search_base_dn are used
so I think %dn sholud be replaced by the complete DN.
but in the php code you do:

$dn ldap_explode_dn($bind_dn1);
$replaces['%dn'] = $dn[0];

so you replace %dn actualy with the RDN (the part before first comma) and not with the complete DN.

Regards,
Salix