Roundcube Community Forum

SVN Releases => Issues & Bugs => Pending => Topic started by: salix on February 05, 2012, 11:54:19 PM

Title: LDAP %dn bug or not?
Post by: salix 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_dn, 1);
$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