summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4b9e37)
raw | patch | inline | side by side (parent: d4b9e37)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Jun 2007 13:56:48 +0000 (13:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Jun 2007 13:56:48 +0000 (13:56 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6604 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_ldap.inc | patch | blob | history |
diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index 4ee33cbab9431186c3dacabfa42a90061ae46c13..8f050939e000075a0323108f4b3bcf067ad1b139 100644 (file)
--- 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){