Code

Added logging to get_objectclasses
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Dec 2006 05:46:55 +0000 (05:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Dec 2006 05:46:55 +0000 (05:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5353 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ldap.inc

index ee6d9b00164cde81e1bec2fb4550fa1a53b1c2a9..13e17a93362330dbdf8b03f91568293b69cc18ea 100644 (file)
@@ -1134,8 +1134,12 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec
          $objectclasses = array();
        
          # Get base to look for schema 
-         $sr = @ldap_read ($this->cid, NULL, "objectClass=*", array("subschemaSubentry"));
-         $attr = @ldap_get_entries($this->cid,$sr);
+         $sr           = @ldap_read ($this->cid, NULL, "objectClass=*", array("subschemaSubentry"));
+         $attr         = @ldap_get_entries($this->cid,$sr);
+    $this->error  = @ldap_error($this->cid);
+
+    gosa_log($this->get_error());
+
          if (!isset($attr[0]['subschemasubentry'][0])){
            return array();
          }