From: hickert Date: Thu, 26 Apr 2007 12:38:22 +0000 (+0000) Subject: Updated get_objectclasses. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c5fdf87c3b0f20e0f1c30e6915b2d605b5d11512;p=gosa.git Updated get_objectclasses. Use a second method to gather schema informations git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6195 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ldap.inc b/include/class_ldap.inc index b3ae4983b..911da4b00 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -1188,6 +1188,10 @@ class LDAP{ # Get base to look for schema $sr = @ldap_read ($this->cid, NULL, "objectClass=*", array("subschemaSubentry")); + if(!$sr){ + $sr = @ldap_read ($this->cid, "", "objectClass=*", array("subschemaSubentry")); + } + $attr = @ldap_get_entries($this->cid,$sr); if (!isset($attr[0]['subschemasubentry'][0])){ return array();