From: hickert Date: Mon, 27 Jun 2005 10:29:40 +0000 (+0000) Subject: added schemacheck in index.php X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=25b2ac643903605918356c2ece6e8c25e3009d85;p=gosa.git added schemacheck in index.php git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@874 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_setup.inc b/include/functions_setup.inc index 335ee204d..f7f3e4224 100644 --- a/include/functions_setup.inc +++ b/include/functions_setup.inc @@ -29,6 +29,7 @@ function view_schema_check($table) return $message; } + function is_schema_readable($server, $admin, $password) { $ds= ldap_connect ($server); @@ -137,6 +138,7 @@ function schema_check($server, $admin, $password, $aff=0) } else { if (!check_schema_version($objectclasses[$key], $value['version'])){ $messages[$key]['msg']= sprintf(_("Optional objectclass '%s' required by plugin '%s' does not have version %s"), $key, $class, $value['version']); + $messages[$key]['needonstartup'] = TRUE; $messages[$key]['status'] =FALSE; }else { if(!isset($affich2[$class])){ @@ -156,7 +158,9 @@ function schema_check($server, $admin, $password, $aff=0) if (!check_schema_version($objectclasses[$key], $value['version'])){ $messages[$key]['msg']= sprintf(_("Required objectclass '%s' does not have version %s"), $key, $value['version']); $messages[$key]['status'] = FALSE; + $messages[$key]['needonstartup'] = TRUE; } + } } }