From 3d8652fe953ab5baa73f7e5cfa89a71f5345292e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 27 Jun 2005 08:39:48 +0000 Subject: [PATCH] Added schema readable check to index.php, git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@869 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/index.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); -- 2.30.2