From 045b58df09c8152ca58d4150610d7be190cfa839 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 10 May 2007 05:48:51 +0000 Subject: [PATCH] Temporary disabled schema check. (Will reimplement it later, today) Added contrib gosa.conf. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6322 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 331 ++++++++++++++++++++++++++++++++++------------ html/index.php | 22 +-- 2 files changed, 255 insertions(+), 98 deletions(-) diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 987666f9e..b72fb3595 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -1,4 +1,4 @@ - +{literal}{/literal}
@@ -7,7 +7,9 @@ @@ -21,8 +23,10 @@ path="plugins/gofax/faxaccount" /> - +
@@ -40,6 +44,8 @@ icon="application.png" path="plugins/admin/applications" /> +
@@ -82,34 +94,34 @@ - - + + + + + - - - - - @@ -118,7 +130,6 @@ - @@ -126,15 +137,13 @@ - {servKolab} - - - - - - +{if $cv.mail == "kolab"} + +{/if} + + + + @@ -144,55 +153,68 @@ - - - + + + + + + + + + + + + + + + + + - - + - - - - + + + - - - - + + + - - - - + + + - - {kolabAccount} + +{if $cv.mail == "kolab"} + +{/if} + - - - - + username="OGo" + password="" + database="OGo" + datahost="localhost" /> + @@ -203,23 +225,23 @@ - + - + - + - + - + @@ -228,45 +250,180 @@ - + -
- - +{/if} +{if $cv.optional.ppd_path_active} + ppd_path="{$cv.optional.ppd_path}" +{/if} +{if $cv.optional.max_ldap_query_time_active} + max_ldap_query_time="{$cv.optional.max_ldap_query_time}" +{/if} +{if $cv.optional.noprimarygroup} + noprimarygroup="true" +{/if} +{if $cv.optional.mailQueueScriptPath_active} + mailQueueScriptPath="{$cv.optional.mailQueueScriptPath}" +{/if} +{if $cv.optional.auto_network_hook_active} + auto_network_hook="{$cv.optional.auto_network_hook} " +{/if} +{if $cv.optional.strict_units} + strict_units="true" +{else} + strict_units="false" +{/if} + lang="{$cv.lang_selected}" + theme="{$cv.theme}" + session_lifetime="{$cv.optional.session_lifetime}" + compile="{$cv.optional.compile}" + debuglevel="{$cv.optional.debuglevel}" + smbhash='{$cv.samba_settings.smbhash}' + > + - + diff --git a/html/index.php b/html/index.php index 80446f1f2..14379e012 100644 --- a/html/index.php +++ b/html/index.php @@ -46,7 +46,7 @@ function displayLogin() /* Displasy SSL mode warning? */ if ($ssl != "" && $config->data['MAIN']['WARNSSL'] == 'true'){ - $smarty->assign ("ssl", ""._("Warning").":<\/b> "._("Session will not be encrypted.")." "._("Enter SSL session")."<\/b>!"); + $smarty->assign ("ssl", ""._("Warning").": "._("Session will not be encrypted.")." "._("Enter SSL session")."!"); } else { $smarty->assign ("ssl", ""); } @@ -217,21 +217,21 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){ $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)){ + if(!count($ldap->get_objectclasses())){ 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(); - } - } +# $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 */ -- 2.30.2