From 5bf4f692fdee7fc686609c93f4cbc743d00f0621 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 28 Dec 2009 08:52:25 +0000 Subject: [PATCH] Updated class ldap -Allow to specify an additional search filter for function LDAP::cat. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14951 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 463f6b9e1..5322abeba 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -276,13 +276,12 @@ class LDAP{ } } - function cat($srp, $dn,$attrs= array("*")) + function cat($srp, $dn,$attrs= array("*"), $filter = "(objectclass=*)") { if($this->hascon){ if ($this->reconnect) $this->connect(); $this->clearResult($srp); - $filter = "(objectclass=*)"; $this->sr[$srp] = @ldap_read($this->cid, LDAP::fix($dn), $filter,$attrs); $this->error = @ldap_error($this->cid); $this->resetResult($srp); -- 2.30.2