From c5fdf87c3b0f20e0f1c30e6915b2d605b5d11512 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 26 Apr 2007 12:38:22 +0000 Subject: [PATCH] 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 --- include/class_ldap.inc | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.30.2