From: hickert Date: Fri, 15 Jun 2007 13:56:48 +0000 (+0000) Subject: Updated get_objectclasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b43121e67eb2209b8dfa776b2536ac55a5d0641d;p=gosa.git Updated get_objectclasses git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6604 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 4ee33cbab..8f050939e 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -1278,8 +1278,8 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec function get_objectclasses_old() { - $objectclasses = array(); - + $objectclasses = array(); + # Get base to look for schema $sr = @ldap_read ($this->cid, NULL, "objectClass=*", array("subschemaSubentry")); $attr = @ldap_get_entries($this->cid,$sr); @@ -1313,6 +1313,10 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec { $objectclasses = array(); + if(!isset($ithis->config->data['MAIN']['SCHEMA_CHECK']) || !preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])){ + return($objectclasses); + } + # Get base to look for schema $sr = @ldap_read ($this->cid, NULL, "objectClass=*", array("subschemaSubentry")); if(!$sr){