[Tickets #1786] NEW: LDAP Preferences - Wrong bind DN

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Apr 13 09:51:02 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1786
-----------------------------------------------------------------------
 Ticket             | 1786
 Created By         | heinz at htl-steyr.ac.at
 Summary            | LDAP Preferences - Wrong bind DN
 Queue              | Horde Framework Packages
 State              | New
 Priority           | 2. Medium
 Type               | Enhancement
 Owners             | 
+New Attachment     | ldap.php.diff
-----------------------------------------------------------------------


heinz at htl-steyr.ac.at (2005-04-13 09:51) wrote:

I am using the LDAP-Preferences System
The users in the LDAP-tree are organized hierarchicaly in different
organizational units.
When binding to the LDAP-server we have to determine the user's full DN.
In the current code (/horde/lib/Horde/Prefs/ldap.php v1.85.10.4) the bind DN
is hardcoded like this:
    $bind_dn = sprintf('%s=%s,%s', $this->_params['uid'][0],
                                   $this->_params['username'],
                                   $this->_params['basedn']);

In our opinion it would be more advantageous to use the code attached, to
avoid this hardcoding.





More information about the bugs mailing list