From: hickert Date: Mon, 28 Dec 2009 08:52:25 +0000 (+0000) Subject: Updated class ldap X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5bf4f692fdee7fc686609c93f4cbc743d00f0621;p=gosa.git 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 --- 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);