Code

Added schema readable check to index.php,
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jun 2005 08:39:48 +0000 (08:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jun 2005 08:39:48 +0000 (08:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@869 594d385d-05f5-0310-b6e9-bd551577e9d8

html/index.php

index 562d52f0866985447ee03dfcd3f1a9781d8e72ec..157009be553f2c9bd9002ffb4366d235b5f4c706 100644 (file)
@@ -142,6 +142,14 @@ if ($_SERVER["REQUEST_METHOD"] == "POST"){
     exit();
   }
 
+  $ldap->search("(objectClass=*)",array("subschemaSubentry"));
+  $attrs= $ldap->fetch();
+  if(!count($attrs)){
+    print_red(_("Can't read schema informations, GOsa needs to know your schema setup. Pleasy verify taht it is readable for GOsa"));
+    echo $_SESSION['errors'];
+    exit();
+  }
+
   /* Check for locking area */
   $ldap->cat($config->current['CONFIG']);
   $attrs= $ldap->fetch();