diff --git a/lam/lib/ldap.inc b/lam/lib/ldap.inc index 916f8592..f632b8d7 100644 --- a/lam/lib/ldap.inc +++ b/lam/lib/ldap.inc @@ -160,7 +160,7 @@ class Ldap{ $ret = array(); $attr = array("DN", "sambaDomainName", "sambaSID", "sambaNextRid", "sambaNextGroupRid", "sambaNextUserRid", "sambaAlgorithmicRidBase"); - $sr = @ldap_search($_SESSION["ldap"]->server(), $suffix, "sambaDomainName=*", $attr); + $sr = @ldap_search($_SESSION["ldap"]->server(), $suffix, "objectClass=sambaDomain", $attr); if ($sr) { $units = ldap_get_entries($_SESSION["ldap"]->server, $sr); // delete count entry