From df0e410896235d278930e53aa96f1726567b2acb Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 8 Mar 2006 04:42:42 +0000 Subject: [PATCH] Updated ldap::cat, to allow attribute selection ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2819 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ldap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2