[cvs] [Wiki] changed: CustomizingPreferences
Wiki Guest
wiki at wiki.horde.org
Sun May 8 17:33:45 PDT 2005
guest [69.173.212.32] Sun, 08 May 2005 17:33:45 -0700
Modified page: http://wiki.horde.org/display.php?page=CustomizingPreferences
New Revision: 1.14
@@ -214,14 +214,14 @@
$ldapPort = '389';
$searchBase = 'yoursearchbase';
$ds = @ldap_connect($ldapServer, $ldapPort);
- if (is_null($uid) {
- $uid = Auth:getAuth();
+ if (is_null($uid)) {
+ $uid = Auth::getAuth();
}
if (@ldap_bind($ds)) {
- $searchResult = @ldap_list($ds, $searchBase, $conf['auth']['params']['uid'] . '=' . $uid);
+ $searchResult = @ldap_list($ds, $searchBase, 'uid=' . $uid);
}
$information = @ldap_get_entries($ds, $searchResult);
More information about the cvs
mailing list