From: hickert Date: Wed, 18 Jan 2006 12:20:53 +0000 (+0000) Subject: Schema check is now configurable vai gosa.conf X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=174b15cc77f5d20bed3189258858d2019fb2a175;p=gosa.git Schema check is now configurable vai gosa.conf git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2524 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/index.php b/html/index.php index fcfe3445b..f11f8514a 100644 --- a/html/index.php +++ b/html/index.php @@ -140,23 +140,24 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){ } /* Check for schema file presence */ - require_once("functions_setup.inc"); - if(!is_schema_readable($config->current['SERVER'],$config->current['ADMIN'],$config->current['PASSWORD'])){ - print_red(_("GOsa cannot retrieve information about the installed schema files. Please make sure, that this is possible.")); - echo $_SESSION['errors']; - exit(); - }else{ - $str = (schema_check($config->current['SERVER'],$config->current['ADMIN'],$config->current['PASSWORD'],0,TRUE)); - $checkarr = array(); - foreach($str as $tr){ - if(isset($tr['needonstartup'])){ - print_red($tr['msg']."
"._("Your ldap setup contains old schema definitions. Please re-run the setup.")); - print $_SESSION['errors']; - exit(); + if(preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])){ + require_once("functions_setup.inc"); + if(!is_schema_readable($config->current['SERVER'],$config->current['ADMIN'],$config->current['PASSWORD'])){ + print_red(_("GOsa cannot retrieve information about the installed schema files. Please make sure, that this is possible.")); + echo $_SESSION['errors']; + exit(); + }else{ + $str = (schema_check($config->current['SERVER'],$config->current['ADMIN'],$config->current['PASSWORD'],0,TRUE)); + $checkarr = array(); + foreach($str as $tr){ + if(isset($tr['needonstartup'])){ + print_red($tr['msg']."
"._("Your ldap setup contains old schema definitions. Please re-run the setup.")); + print $_SESSION['errors']; + exit(); + } } } } - /* Check for locking area */ $ldap->cat($config->current['CONFIG']); $attrs= $ldap->fetch();