From: hickert Date: Mon, 27 Jun 2005 08:39:48 +0000 (+0000) Subject: Added schema readable check to index.php, X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3d8652fe953ab5baa73f7e5cfa89a71f5345292e;p=gosa.git Added schema readable check to index.php, git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@869 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/index.php b/html/index.php index 562d52f08..157009be5 100644 --- a/html/index.php +++ b/html/index.php @@ -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();