fixed loaduser

This commit is contained in:
katagia 2003-11-12 14:24:23 +00:00
parent f8bb2f127b
commit 6e3f868372
1 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,7 @@ function loaduser($dns) {
* output only the selcted users because searchfilter would be too big * output only the selcted users because searchfilter would be too big
*/ */
if (strlen($search)<1024) $result = ldap_search($_SESSION['ldap']->server(), $_SESSION['config']->get_UserSuffix(), $search); if (strlen($search)<1024) $result = ldap_search($_SESSION['ldap']->server(), $_SESSION['config']->get_UserSuffix(), $search);
else $result = ldap_search($_SESSION['ldap']->server(), $_SESSION['config']->get_UserSuffix()); else $result = ldap_search($_SESSION['ldap']->server(), $_SESSION['config']->get_UserSuffix(), "uid=*");
$entry = ldap_first_entry($_SESSION['ldap']->server(), $result); $entry = ldap_first_entry($_SESSION['ldap']->server(), $result);
// store smb_domain as samba3domain-Object // store smb_domain as samba3domain-Object