fixed loaduser
This commit is contained in:
parent
f8bb2f127b
commit
6e3f868372
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue