From: hickert Date: Wed, 8 Mar 2006 04:42:42 +0000 (+0000) Subject: Updated ldap::cat, to allow attribute selection ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df0e410896235d278930e53aa96f1726567b2acb;p=gosa.git Updated ldap::cat, to allow attribute selection ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2819 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ldap.inc b/include/class_ldap.inc index c6193c635..5bc19ed63 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -194,13 +194,13 @@ class LDAP{ } } - function cat($dn) + function cat($dn,$attrs= array("*")) { if($this->hascon){ if ($this->reconnect) $this->connect(); $this->clearResult(); $filter = "(objectclass=*)"; - $this->sr = @ldap_read($this->cid, $this->fix($dn), $filter); + $this->sr = @ldap_read($this->cid, $this->fix($dn), $filter,$attrs); $this->error = @ldap_error($this->cid); $this->resetResult(); $this->hasres=true;