From a9b96f51e5a0f72b25916eadfabaec3674e04014 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 27 Apr 2007 09:58:23 +0000 Subject: [PATCH] Removed old setup dependencies git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6200 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/index.php | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/html/index.php b/html/index.php index 6d6c48d81..b6c38f306 100644 --- a/html/index.php +++ b/html/index.php @@ -208,9 +208,9 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){ /* Admin-logon and verify */ $ldap = $config->get_ldap_link(); if (is_null($ldap) || (is_int($ldap) && $ldap == 0)){ - print_red (_("Can't bind to LDAP. Please contact the system administrator.")); - displayLogin(); - exit(); +# print_red (_("Can't bind to LDAP. Please contact the system administrator.")); +# displayLogin(); +# exit(); } /* Check for schema file presence */ @@ -218,26 +218,25 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){ $config->data['MAIN']['SCHEMA_CHECK'] = "true"; } if(isset($config->data['MAIN']['SCHEMA_CHECK'])&&preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])){ - require_once("functions_setup.inc"); $recursive = (isset($config->current['RECURSIVE']) && $config->current['RECURSIVE'] == "true"); $tls = (isset($config->current['TLS']) && $config->current['TLS'] == "true"); - if(!is_schema_readable($config->current['SERVER'], $config->current['ADMIN'], $config->current['PASSWORD'], $recursive, $tls)){ - - print_red(_("GOsa cannot retrieve information about the installed schema files. Please make sure, that this is possible.")); - displayLogin(); - exit() ; - }else{ - $str = (schema_check($config->current['SERVER'],$config->current['ADMIN'],$config->current['PASSWORD'], $recursive, $tls, 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.")); - displayLogin(); - exit() ; - } - } - } +# if(!is_schema_readable($config->current['SERVER'], $config->current['ADMIN'], $config->current['PASSWORD'], $recursive, $tls)){ +# +# print_red(_("GOsa cannot retrieve information about the installed schema files. Please make sure, that this is possible.")); +# displayLogin(); +# exit() ; +# }else{ +# $str = (schema_check($config->current['SERVER'],$config->current['ADMIN'],$config->current['PASSWORD'], $recursive, $tls, 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.")); +# displayLogin(); +# exit() ; +# } +# } +# } } /* Check for locking area */ $ldap->cat($config->current['CONFIG'], array("dn")); -- 2.30.2