X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fsetup%2Fclass_setupStep_Config2.inc;h=2ec4ede3349fdad879f48aaad3b8508a57c23610;hb=88dabea136b599a537f8bcfa4b90ab479b23d6b9;hp=9f8397119834a6660042295c834784801d7ce3d5;hpb=434959652679c3a0bccca42ce9e858b4d595be30;p=gosa.git diff --git a/gosa-core/setup/class_setupStep_Config2.inc b/gosa-core/setup/class_setupStep_Config2.inc index 9f8397119..2ec4ede33 100644 --- a/gosa-core/setup/class_setupStep_Config2.inc +++ b/gosa-core/setup/class_setupStep_Config2.inc @@ -34,8 +34,6 @@ class Step_Config2 extends setup_step "vacationdir_active" => FALSE); var $generic_settings = array( "enableCopyPaste" => false, - "enableDNS" => false, - "enableDHCP" => false, "wws_ou" => "ou=winstations", "wws_ou_active" => FALSE, "snapshot_active" => FALSE, @@ -52,14 +50,10 @@ class Step_Config2 extends setup_step "samba_rid_active" => FALSE); var $sambaDomain_found = FALSE; - var $use_netatalk = FALSE; - var $enableFAI_management = FALSE; - var $enableMimeType = FALSE; - var $timezone = "Europe/Berlin"; var $timezones = array(); - var $attributes = array("mail_attrib","governmentmode","sambaidmapping","cyrusunixstyle","mail","use_netatalk","enableFAI_management","timezone","enableMimeType"); + var $attributes = array("mail_attrib","governmentmode","sambaidmapping","cyrusunixstyle","mail","timezone"); var $called = FALSE; function Step_Config2() @@ -116,30 +110,6 @@ class Step_Config2 extends setup_step $this->samba_settings['samba_rid_active'] = TRUE; } - /* Check if we can enable netatalk plugin */ - $tmp = $ldap->get_objectclasses(); - if(is_array($tmp) && isset($tmp['apple-user'])) { - $this->use_netatalk = TRUE; - } - - /* Check the FAI schema is used */ - if(is_array($tmp) && isset($tmp['FAIclass'])){ -# $this->enableFAI_management = TRUE; - } - - /* Check the MimeType schema is used */ - if(is_array($tmp) && isset($tmp['gotoMimeType'])){ - $this->enableMimeType = TRUE; - } - - if(is_array($tmp) && isset($tmp['dhcpClass'])){ - $this->generic_settings['enableDHCP'] = TRUE; - } - - if(is_array($tmp) && isset($tmp['dNSZone'])){ - $this->generic_settings['enableDNS'] = TRUE; - } - $this->called = TRUE; } @@ -213,12 +183,6 @@ class Step_Config2 extends setup_step if(isset($_POST['enableCopyPaste'])){ $this->generic_settings['enableCopyPaste'] = get_post('enableCopyPaste'); } - if(isset($_POST['enableDNS'])){ - $this->generic_settings['enableDNS'] = get_post('enableDNS'); - } - if(isset($_POST['enableDHCP'])){ - $this->generic_settings['enableDHCP'] = get_post('enableDHCP'); - } if(isset($_POST['wws_ou_active'])){ $this->generic_settings['wws_ou_active'] = TRUE; @@ -272,11 +236,6 @@ class Step_Config2 extends setup_step $this->samba_settings['samba_sid_active'] = TRUE; $this->samba_settings['samba_rid_active'] = TRUE; } - - /* Reload mail naming attribute */ - if($old_mail != $this->mail && isset($this->mail_methods[$this->mail]['uattrib'])){ - $this->mail_attrib = $this->mail_methods[$this->mail]['uattrib']; - } } $tmp = $this->check(); @@ -315,24 +274,12 @@ class Step_Config2 extends setup_step if(!class_available("mailMethod")){ return(array()); } - - $default_uattrib = ""; - $m_class_vars = get_class_vars("mailMethod"); - if(isset($m_class_vars['uattrib'])){ - $default_uattrib = $m_class_vars['uattrib']; - } - + $methods = array(); foreach($class_mapping as $name => $file){ - if(preg_match("/^mailMethod[a-z]*$/i",$name)){ + if(preg_match("/^mailMethod.*$/i",$name)){ $name = preg_replace("/^mailMethod/","",$name); if(!empty($name)){ $methods[$name]['name'] = $name; - $m_class_vars = get_class_vars("mailMethod".$methods[$name]['name']); - if(isset($m_class_vars['uattrib'])){ - $methods[$name]['uattrib'] = $m_class_vars['uattrib']; - }else{ - $methods[$name]['uattrib'] = $default_uattrib; - } } } }