Code

Updated ldap::cat, to allow attribute selection ...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Mar 2006 04:42:42 +0000 (04:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Mar 2006 04:42:42 +0000 (04:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2819 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ldap.inc

index c6193c635039e99e16cb4967bfe92f36a89f6c94..5bc19ed63bd51db031d71ccab7cff2d0b38da5db 100644 (file)
@@ -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;