Code

Updated setup schema check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Nov 2008 13:07:21 +0000 (13:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Nov 2008 13:07:21 +0000 (13:07 +0000)
- Reload schema check on each execution.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13077 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/setup/class_setupStep_Schema.inc

index 4f795ea3f41f2c7fda382398e15d7297ff910741..c4784593f6d927503cc4bad9b4534662807c0828 100644 (file)
@@ -110,13 +110,13 @@ class Step_Schema extends setup_step
   function check_schema()
   {
     $cfg = $this->parent->captured_values;
-    $rfc2307bis = $cfg['rfc2307bis'];
-    $this->checked = check_schema($cfg,$rfc2307bis);
 
     /* Get objectclasses */
     $ldap = new LDAP($cfg['admin'],$cfg['password'],$cfg['connection'] ,FALSE,$cfg['tls']);
-    $objectclasses = $ldap->get_objectclasses();
+    $objectclasses = $ldap->get_objectclasses(TRUE);
     $this->found_ocs = count($objectclasses);
+    $rfc2307bis = $cfg['rfc2307bis'];
+    $this->checked = check_schema($cfg,$rfc2307bis);
 
     /* Which samba version do we use? */
     if(isset($objectclasses['sambaSamAccount'])){