summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8118d12)
raw | patch | inline | side by side (parent: 8118d12)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 May 2005 07:37:48 +0000 (07:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 May 2005 07:37:48 +0000 (07:37 +0000) |
include/setup_checks.inc | patch | blob | history |
index 2c097bd4b4eb3211dac86a840113765d0fc75a0f..1e496df475190c43f8da262e0dd33b535e8e2098 100644 (file)
--- a/include/setup_checks.inc
+++ b/include/setup_checks.inc
function schema_check($server, $admin, $password,$aff=0)
{
global $config;
+
$messages= array();
$required_classes= array(
"goCupsServer" => array("version" => "2.1", "class" => array("posixAccount", "terminals"),),
"goImapServer" => array("version" => "2.1", "class" => array("mailAccount", "mailgroup"),"file" => "gosa+samba3.schema"),
"goKrbServer" => array("version" => "2.1"),
- "goFaxServer" => array("version" => "2.1", "class" => "gofaxAccount","file" => "gofax.schema")
+ "goFaxServer" => array("version" => "2.1", "class" => "gofaxAccount","file" => "gofax.schema"),
+
);
/* Build LDAP connection */
$affich['phoneaccount']=$messages['phoneaccount']."<td class=\"check\">gofon.schema</td>";
}else{$affich['phoneaccount']=_("Support for <b>gofon</b> enabled<td class=\"check\">gofon.schema</td>");}
+
+ if(($_SESSION['ldapconf']['mail_methods'][$_SESSION['ldapconf']['mail']] == "kolab"))
+ if(!isset($objectclasses['kolabInetOrgPerson']))
+ {
+ $messages['kolab']= _("Support for <b>Kolab</b> disabled, no schema seems to be installed, setting mail-method to cyrus");
+ $tmp = array_flip($_SESSION['ldapconf']['mail_methods']);
+ $_SESSION['ldapconf']['mail']=$tmp['cyrus'];
+ $affich['kolab']=$messages['kolab']."<td class=\"check\"></td>";
+ }else{$affich['kolab']=_("Support for <b>Kolab</b> enabled<td class=\"check\">gofon.schema</td>");}
+
+
if($aff==0)return ($messages);
else return(array_merge($affich,$affich2));
+
+
}
_("Security option, php will escape all quotes in strings ."),
$magic_quotes_gpc['local_value'],0,false);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
return $msg;
}
if(isset($_POST['check']))
{
$ldap= new LDAP($_SESSION['ldapconf']['admin'], $_SESSION['ldapconf']['password'], $_SESSION['ldapconf']['uri']);
-
+
+ if($withoutput){
$m= schema_check($_SESSION['ldapconf']['uri'], $_SESSION['ldapconf']['admin'], $_SESSION['ldapconf']['password']);
$_SESSION['classes']= $m;
-
+ }
if ($ldap->error != "Success")
{
// and wants you to download the gosa.conf ....
function show_setup_page5($withoutput=true)
{
-
// Get ldapconf
$ldapconf= $_SESSION['ldapconf'];
$message = "";
$message.="<table class=\"check\">";
$m= schema_check($ldapconf['uri'], $ldapconf['admin'], $ldapconf['password'],1);
-
+
if($withoutput)
{
$smarty->assign ("schemas", view_schema_check($m));