From 3fa04b9da0a7cfdbea1e4b82451e26c99c83a791 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Dec 2006 05:46:55 +0000 Subject: [PATCH] Added logging to get_objectclasses git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5353 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ldap.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/class_ldap.inc b/include/class_ldap.inc index ee6d9b001..13e17a933 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -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(); } -- 2.30.2