From 0c68a66676656a05d9cfae7e7c2539ebdca4e2a2 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 7 Aug 2003 12:00:30 +0000 Subject: [PATCH] fixed domain search --- lam/lib/ldap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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