summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ec58b1)
raw | patch | inline | side by side (parent: 2ec58b1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 May 2010 09:53:06 +0000 (09:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 May 2010 09:53:06 +0000 (09:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18594 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/setup/class_setupStep_Config1.inc | [deleted file] | patch | blob | history |
gosa-core/setup/class_setupStep_Config2.inc | [deleted file] | patch | blob | history |
gosa-core/setup/class_setupStep_Config3.inc | [deleted file] | patch | blob | history |
gosa-core/setup/setup_config1.tpl | [deleted file] | patch | blob | history |
gosa-core/setup/setup_config2.tpl | [deleted file] | patch | blob | history |
gosa-core/setup/setup_config3.tpl | [deleted file] | patch | blob | history |
diff --git a/gosa-core/setup/class_setupStep_Config1.inc b/gosa-core/setup/class_setupStep_Config1.inc
+++ /dev/null
@@ -1,245 +0,0 @@
-<?php
-
-/*
- This code is part of GOsa (https://gosa.gonicus.de)
- Copyright (C) 2007 Fabian Hickert
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-
-class Step_Config1 extends setup_step
-{
-
- var $peopleou = "ou=people";
- var $groupou = "ou=groups";
- var $peopledn = "cn";
- var $uidbase = 1000;
- var $krbsasl = FALSE;
- var $strict = TRUE;
- var $compressed = TRUE;
-
- var $header_image = "images/setup/server.png";
- var $account_expiration =FALSE;
- var $base_hook = "";
- var $base_hook_active = FALSE;
-
- var $encryption = "crypt/md5";
- var $theme = "default";
-
- var $include_personal_title = FALSE;
-
- var $pwd_rules = array("pwminlen" => 6,
- "pwminlen_active" => FALSE,
- "pwdiffer" => 5,
- "pwdiffer_active" => FALSE,
- "externalpwdhook" => "",
- "externalpwdhook_active" => FALSE);
-
- var $id_settings = array( "idgen" => "{%sn}-{%givenName[2-4]}",
- "idgen_active" => FALSE,
- "minid" => "100",
- "minid_active" => FALSE);
-
- var $crypt_methods = array();
-
- var $attributes = array("compressed","peopleou","groupou","peopledn","uidbase","encryption","theme","krbsasl",
- "base_hook","base_hook_active","account_expiration","strict","include_personal_title");
-
- function Step_Config1()
- {
- $this->update_strings();
-
- $tmp = passwordMethod::get_available_methods();
- foreach($tmp['name'] as $name){
- $this->crypt_methods[$name] = $name;
- }
- }
-
-
- function update_strings()
- {
- $this->s_title = _("GOsa settings 1/3");
- $this->s_title_long = _("GOsa settings 1/3");
- $this->s_info = _("GOsa generic settings");
- }
-
-
- function execute()
- {
- $smarty = get_smarty();
- $smarty->assign("peopledns",array("uid","cn"));
- $smarty->assign("id_settings", reverse_html_entities($this->id_settings));
- $smarty->assign("crypt_methods", reverse_html_entities($this->crypt_methods));
- $smarty->assign("themes", reverse_html_entities($this->get_themes()));
- $smarty->assign("pwd_rules", reverse_html_entities($this->pwd_rules));
- $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes")));
- foreach($this->attributes as $attr){
- $smarty->assign($attr,htmlentities($this->$attr,ENT_QUOTES,"UTF-8"));
- }
-
- /* !!! Attention strict is inverse. If you change this,
- * don't forget to change save_object too
- */
- $smarty->assign("strict",!$this->strict);
- return($smarty -> fetch (get_template_path("../setup/setup_config1.tpl")));
- }
-
-
- function get_themes()
- {
- $dir = opendir( "../ihtml/themes/");
- $themes = array();
- while (($file = readdir($dir)) !== false){
- if(is_dir("../ihtml/themes/".$file) && !preg_match("/^\./",$file)){
- $themes[$file] = $file;
- }
- }
- return($themes);
- }
-
- function check()
- {
- $message = array();
-
- if(isset($this->id_settings['minid_active']) && !is_numeric($this->id_settings['minid'])){
- $message[] = sprintf(_("The specified value for '%s' must be a numeric value"),_("GID / UID min id"));
- }
-
- if(preg_match("/,$/",$this->peopleou)){
- $message[] =sprintf(_("Don't add a trailing comma to '%s'."),_("People storage ou"));
- }
-
- if(preg_match("/,$/",$this->groupou)){
- $message[] =sprintf(_("Don't add a trailing comma to '%s'."),_("Group storage ou"));
- }
-
- if(!is_numeric($this->uidbase)){
- $message[] = _("Uid base must be numeric");
- }
-
- if(($this->pwd_rules['pwminlen_active']) && !is_numeric($this->pwd_rules['pwminlen'])){
- $message[] = _("The given password minimum length is not numeric.");
- }
- if(($this->pwd_rules['pwdiffer_active']) && !is_numeric($this->pwd_rules['pwdiffer'])){
- $message[] = _("The given password differ value is not numeric.");
- }
- return($message);
- }
-
- function save_object()
- {
- if(isset($_POST['step5_posted'])){
-
- /* Get attributes */
- foreach($this->attributes as $attr){
- if(isset($_POST[$attr])){
- $this->$attr = validate(get_post($attr));
- }
- }
-
- /* !!! Attention strict is inverse. If you change this,
- * don't forget to change the smarty assignment too
- */
- if(isset($_POST['strict'])){
- if($_POST['strict']){
- $this->strict = FALSE;
- }else{
- $this->strict = TRUE;
- }
- }
-
- if(isset($_POST['minid_active'])){
- $this->id_settings['minid_active'] = TRUE;
- if(isset($_POST['minid'])){
- $this->id_settings['minid'] = get_post('minid');
- }
- }else{
- $this->id_settings['minid_active'] = FALSE;
- }
-
- /* Generic settings */
- if(isset($_POST['idgen_active'])){
- $this->id_settings['idgen_active'] = TRUE;
- if(isset($_POST['idgen'])){
- $this->id_settings['idgen'] = get_post('idgen');
- }
- }else{
- $this->id_settings['idgen_active'] = FALSE;
- }
-
- /* Get password settings */
- if(isset($_POST['pwdiffer_active'])){
- $this->pwd_rules['pwdiffer_active'] = TRUE;
- if(isset($_POST['pwdiffer'])){
- $this->pwd_rules['pwdiffer'] = get_post('pwdiffer');
- }
- }else{
- $this->pwd_rules['pwdiffer_active'] = FALSE;
- }
-
- /* Get password minimum length posts */
- if(isset($_POST['pwminlen_active'])){
- $this->pwd_rules['pwminlen_active'] = TRUE;
- if(isset($_POST['pwminlen'])){
- $this->pwd_rules['pwminlen'] = get_post('pwminlen');
- }
- }else{
- $this->pwd_rules['pwminlen_active'] = FALSE;
- }
-
- /* External pwd settings */
- if(isset($_POST['externalpwdhook_active'])){
- $this->pwd_rules['externalpwdhook_active'] = TRUE;
- if(isset($_POST['externalpwdhook'])){
- $this->pwd_rules['externalpwdhook'] = get_post('externalpwdhook');
- }
- }else{
- $this->pwd_rules['externalpwdhook_active'] = FALSE;
- }
-
- /* base hook settings */
- if(isset($_POST['base_hook_active'])){
- $this->pwd_rules['base_hook_active'] = TRUE;
- if(isset($_POST['base_hook'])){
- $this->pwd_rules['base_hook'] = get_post('base_hook');
- }
- }else{
- $this->pwd_rules['base_hook_active'] = FALSE;
- }
- }
-
- $tmp = $this->check();
- if(count($tmp) == 0){
- $this->is_completed = TRUE;
- }else{
- $this->is_completed = FALSE;
- }
- }// if tempalte posted
-
-
- /* Attributes that are interesting for configuration generation */
- function get_attributes()
- {
- $tmp = setup_step::get_attributes();
- foreach(array("pwd_rules","id_settings") as $attr){
- $tmp[$attr]= $this->$attr;
- }
- return($tmp);
- }
-}// CLass
-
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
-?>
diff --git a/gosa-core/setup/class_setupStep_Config2.inc b/gosa-core/setup/class_setupStep_Config2.inc
+++ /dev/null
@@ -1,283 +0,0 @@
-<?php
-
-/*
- This code is part of GOsa (https://gosa.gonicus.de)
- Copyright (C) 2007 Fabian Hickert
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-
-class Step_Config2 extends setup_step
-{
- var $governmentmode = FALSE;
- var $sambaidmapping = FALSE;
- var $header_image = "images/setup/server.png";
-
- var $cyrusunixstyle = FALSE;
- var $mail = "none";
- var $mail_attrib = "";
- var $mail_methods = array();
- var $mail_settings = array("vacationdir" => "/etc/gosa/vacation",
- "vacationdir_active" => FALSE);
-
- var $generic_settings = array( "enableCopyPaste" => false,
- "wws_ou" => "ou=winstations",
- "wws_ou_active" => FALSE,
- "snapshot_active" => FALSE,
- "snapshot_base" => "ou=snapshots,%base%",
- "snapshot_user" => "%admin%",
- "snapshot_password" => "",
- "logging" => TRUE,
- "snapshot_server" => "%connection%");
-
- var $samba_settings = array( "samba_sid" => "0-815-4711",
- "samba_sid_active" => FALSE,
- "samba_rid" => 1000,
- "smbhash" => 'SMBHASH',
- "samba_rid_active" => FALSE);
-
- var $sambaDomain_found = FALSE;
- var $timezone = "Europe/Berlin";
- var $timezones = array();
-
- var $attributes = array("mail_attrib","governmentmode","sambaidmapping","cyrusunixstyle","mail","timezone");
- var $called = FALSE;
-
- function Step_Config2()
- {
- $this->update_strings();
- $this->mail_methods = $this->get_available_mail_classes();
-
- /* Look for samba password generation method */
- if(file_exists("/usr/bin/mkntpasswd")){
- $pwdhash = "/usr/bin/mkntpasswd";
- } elseif (preg_match("/^Usage: mkntpwd /", shell_exec ("mkntpwd 2>&1"))){
- $pwdhash= "mkntpwd";
- } else {
- $pwdhash= 'perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen \$ARGV[0]), $/;"';
- }
-
- $this->timezones = timezone::_get_tz_zones();
- $this->samba_settings['smbhash'] = $pwdhash;
- }
-
-
- function update_strings()
- {
- $this->s_title = _("GOsa settings 2/3");
- $this->s_title_long = _("GOsa settings 2/3");
- $this->s_info = _("Customize special parameters");
- }
-
-
- function execute()
- {
- $this->mail_methods = $this->get_available_mail_classes();
- /* On first call check for rid/sid base */
- $cv = $this->parent->captured_values;
- $ldap_l = new LDAP($cv['admin'],
- $cv['password'],
- $cv['connection'],
- FALSE,
- $cv['tls']);
-
- $ldap = new ldapMultiplexer($ldap_l);
-
- $ldap->cd($cv['base']);
- $ldap->search("(objectClass=sambaDomain)",array("dn"));
- if($ldap->count()){
- $this->sambaDomain_found =TRUE;
- }else{
- $this->sambaDomain_found =FALSE;
- }
-
- if(!$this->called){
- if(!$this->sambaDomain_found){
- $this->samba_settings['samba_sid_active'] = TRUE;
- $this->samba_settings['samba_rid_active'] = TRUE;
- }
-
- $this->called = TRUE;
- }
-
- /* Update snapshot values, with already collected values */
- foreach($this->generic_settings as $key => $value){
- foreach(array("snapshot_base","snapshot_user","snapshot_server") as $attr){
- foreach($this->parent->captured_values as $replace_name => $replace_value){
- if(is_string($replace_value)) {
- $this->generic_settings[$attr] = preg_replace("/%".$replace_name."%/",$replace_value,$this->generic_settings[$attr]);
- }
- }
- }
- }
-
- $smarty = get_smarty();
- $smarty->assign("sambaDomain_found", $this->sambaDomain_found);
- $smarty->assign("generic_settings", reverse_html_entities($this->generic_settings));
- $smarty->assign("mail_settings", reverse_html_entities($this->mail_settings));
- $smarty->assign("mail_methods", reverse_html_entities($this->mail_methods));
- $smarty->assign("samba_settings", reverse_html_entities($this->samba_settings));
-
- $smarty->assign("logging",$this->generic_settings['logging']);
-
- $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes")));
- foreach($this->attributes as $attr){
- $smarty->assign($attr,reverse_html_entities($this->$attr));
- }
- $smarty->assign("timezone" ,$this->timezone);
- $smarty->assign("timezones" ,$this->timezones);
- return($smarty -> fetch (get_template_path("../setup/setup_config2.tpl")));
- }
-
- function save_object()
- {
- if(isset($_POST['step6_posted'])){
-
- if(isset($_POST['timezone']) && isset($this->timezones['TIMEZONES'][$_POST['timezone']])){
- $this->timezone = $_POST['timezone'];
- }
-
- $old_mail = $this->mail;
-
- /* Get attributes */
- foreach($this->attributes as $attr){
- if(isset($_POST[$attr])){
- $this->$attr = validate(get_post($attr));
- }
- }
-
- /* Get logging */
- $this->generic_settings['logging'] = isset($_POST['logging']);
-
- /* Mail settings */
- if(isset($_POST['vacationdir_active'])){
- $this->mail_settings['vacationdir_active'] = TRUE;
- if(isset($_POST['vacationdir'])){
- $this->mail_settings['vacationdir'] = get_post('vacationdir');
- }
- }else{
- $this->mail_settings['vacationdir_active'] = FALSE;
- }
-
- if(isset($_POST['enableCopyPaste'])){
- $this->generic_settings['enableCopyPaste'] = get_post('enableCopyPaste');
- }
-
- if(isset($_POST['wws_ou_active'])){
- $this->generic_settings['wws_ou_active'] = TRUE;
- if(isset($_POST['wws_ou'])){
- $this->generic_settings['wws_ou'] = get_post('wws_ou');
- }
- }else{
- $this->generic_settings['wws_ou_active'] = FALSE;
- }
-
- if(isset($_POST['snapshot_active'])){
- $this->generic_settings['snapshot_active'] = TRUE;
- if(isset($_POST['snapshot_base'])){
- $this->generic_settings['snapshot_base'] = get_post('snapshot_base');
- }
- if(isset($_POST['snapshot_user'])){
- $this->generic_settings['snapshot_user'] = get_post('snapshot_user');
- }
- if(isset($_POST['snapshot_password'])){
- $this->generic_settings['snapshot_password'] = get_post('snapshot_password');
- }
- if(isset($_POST['snapshot_server'])){
- $this->generic_settings['snapshot_server'] = get_post('snapshot_server');
- }
- }else{
- $this->generic_settings['snapshot_active'] = FALSE;
- }
-
- /* Samba settings */
- if(isset($_POST['samba_sid_active'])){
- $this->samba_settings['samba_sid_active'] = TRUE;
- if(isset($_POST['samba_sid'])){
- $this->samba_settings['samba_sid'] = get_post('samba_sid');
- }
- }else{
- $this->samba_settings['samba_sid_active'] = FALSE;
- }
- if(isset($_POST['samba_rid_active'])){
- $this->samba_settings['samba_rid_active'] = TRUE;
- if(isset($_POST['samba_rid'])){
- $this->samba_settings['samba_rid'] = get_post('samba_rid');
- }
- }else{
- $this->samba_settings['samba_rid_active'] = FALSE;
- }
- if(isset($_POST['smbhash'])){
- $this->samba_settings['smbhash'] = get_post('smbhash');
- }
-
- if(!$this->sambaDomain_found){
- $this->samba_settings['samba_sid_active'] = TRUE;
- $this->samba_settings['samba_rid_active'] = TRUE;
- }
- }
-
- $tmp = $this->check();
- if(count($tmp) == 0){
- $this->is_completed = TRUE;
- }else{
- $this->is_completed = FALSE;
- }
- }
-
-
- function check()
- {
- $message = array();
- return($message);
- }
-
-
- /* Attributes that are interesting for configuration generation */
- function get_attributes()
- {
- $tmp = setup_step::get_attributes();
- foreach(array("samba_settings","generic_settings","mail_settings") as $attr){
- $tmp[$attr]= $this->$attr;
- }
- return($tmp);
- }
-
-
- /* Returns the classnames auf the mail classes */
- function get_available_mail_classes()
- {
- global $class_mapping;
-
- /* Check if we have the mail classes/plugins installed */
- if(!class_available("mailMethod")){
- return(array());
- }
- $methods = array();
- foreach($class_mapping as $name => $file){
- if(preg_match("/^mailMethod.*$/i",$name)){
- $name = preg_replace("/^mailMethod/","",$name);
- if(!empty($name)){
- $methods[$name]['name'] = $name;
- }
- }
- }
- return($methods);
- }
-}
-
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
-?>
diff --git a/gosa-core/setup/class_setupStep_Config3.inc b/gosa-core/setup/class_setupStep_Config3.inc
+++ /dev/null
@@ -1,224 +0,0 @@
-<?php
-
-/*
- This code is part of GOsa (https://gosa.gonicus.de)
- Copyright (C) 2007 Fabian Hickert
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-
-class Step_Config3 extends setup_step
-{
- var $header_image = "images/setup/server.png";
-
- var $errorlvl = false;
-
- var $login_attributes = array("uid" => "uid",
- "mail" => "mail",
- "uid,mail" => "both");
- var $optional = array(
- "login_attribute" => "uid",
- "strict_units" => false,
- "list_summary" => true,
- "forceglobals" => true,
- "forceSSL" => false,
- "ldapstats" => false,
- "warnSSL" => true,
- "user_filter_cookie" => true,
- "ppd_path" => "/var/spool/ppd/",
- "ppd_path_active" => FALSE,
- "templateCompileDirectory" => "/var/spool/gosa",
- "snmpcommunity" => "goto",
- "debugLevel" => 0,
- "session_lifetime" => 7200,
- "max_ldap_query_time" => "5.0",
- "max_ldap_query_time_active" => FALSE,
-
- "notifydir" => "",
- "notifydir_active" => FALSE,
-
- "gosaSupportURI" => "gosa-si-secret@server:20081",
- "gosaSupportTimeout" => 15,
- "gosaSupportURI_active" => FALSE,
-
- "uniq_identifier" => "entryCSN",
- "uniq_identifier_active" => TRUE,
-
- "kioskpath" => "/var/spool/kiosk",
- "kioskpath_active" => FALSE,
-
- "sudoou" => "ou=sudoers",
- "sudoou_active" => FALSE,
-
- "noprimarygroup" => FALSE);
-
- var $attributes = array("errorlvl");
-
- function Step_Config3()
- {
- $this->update_strings();
- }
-
-
- function update_strings()
- {
- $this->s_title = _("GOsa settings 3/3");
- $this->s_title_long = _("GOsa settings 3/3");
- $this->s_info = _("Tweak some GOsa core behaviour");
- }
-
-
- function execute()
- {
-
- $cv = $this->parent->captured_values;
- $this->optional['sudoou'] = preg_replace("/%BASE%/",$cv['base'],$this->optional['sudoou']);
- $smarty = get_smarty();
- $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes")));
- $smarty->assign("uniq_identifiers",array( "entryCSN" => "entryCSN",
- "contextCSN"=>"contextCSN" ));
-
-
- $smarty->assign("optional", reverse_html_entities($this->optional));
- foreach($this->attributes as $attr){
- $smarty->assign($attr,reverse_html_entities($this->$attr));
- }
- $smarty->assign("login_attributes",$this->login_attributes);
- return($smarty -> fetch (get_template_path("../setup/setup_config3.tpl")));
- }
-
-
- function save_object()
- {
- if(isset($_POST['step6a_posted'])){
-
- /* Get attributes */
- foreach($this->attributes as $attr){
- if(isset($_POST[$attr])){
- $this->$attr = validate(get_post($attr));
- }
- }
-
- foreach(array("login_attribute","list_summary","strict_units","snmpcommunity","noprimarygroup","forceglobals","forceSSL","ldapstats","user_filter_cookie","warnSSL","templateCompileDirectory","debugLevel","session_lifetime") as $name){
- if(isset($_POST[$name])){
- $this->optional[$name] = get_post($name);
- }
- }
-
- if(isset($_POST['ppd_path_active'])){
- $this->optional['ppd_path_active'] = TRUE;
- if(isset($_POST['ppd_path'])){
- $this->optional['ppd_path'] = get_post('ppd_path');
- }
- }else{
- $this->optional['ppd_path_active'] = FALSE;
- }
-
- if(isset($_POST['max_ldap_query_time_active'])){
- $this->optional['max_ldap_query_time_active'] = TRUE;
- if(isset($_POST['max_ldap_query_time'])){
- $this->optional['max_ldap_query_time'] = get_post('max_ldap_query_time');
- }
- }else{
- $this->optional['max_ldap_query_time_active'] = FALSE;
- }
-
- if(isset($_POST['kioskpath_active'])){
- $this->optional['kioskpath_active'] = TRUE;
- if(isset($_POST['kioskpath'])){
- $this->optional['kioskpath'] = get_post('kioskpath');
- }
- }else{
- $this->optional['kioskpath_active'] = FALSE;
- }
-
- if(isset($_POST['sudoou_active'])){
- $this->optional['sudoou_active'] = TRUE;
- if(isset($_POST['sudoou'])){
- $this->optional['sudoou'] = get_post('sudoou');
- }
- }else{
- $this->optional['sudoou_active'] = FALSE;
- }
-
- if(isset($_POST['notifydir_active'])){
- $this->optional['notifydir_active'] = TRUE;
- if(isset($_POST['notifydir'])){
- $this->optional['notifydir'] = get_post('notifydir');
- }
- }else{
- $this->optional['notifydir_active'] = FALSE;
- }
-
- if(isset($_POST['gosaSupportURI_active'])){
- $this->optional['gosaSupportURI_active'] = TRUE;
- if(isset($_POST['gosaSupportURI'])){
- $this->optional['gosaSupportURI'] = get_post('gosaSupportURI');
- $this->optional['gosaSupportTimeout'] = get_post('gosaSupportTimeout');
- }
- }else{
- $this->optional['gosaSupportURI_active'] = FALSE;
- }
-
- if(isset($_POST['uniq_identifier_active'])){
- $this->optional['uniq_identifier_active'] = TRUE;
- if(isset($_POST['uniq_identifier'])){
- $this->optional['uniq_identifier'] = get_post('uniq_identifier');
- }
- }else{
- $this->optional['uniq_identifier_active'] = FALSE;
- }
- }
-
- $tmp = $this->check();
- if(count($tmp) == 0){
- $this->is_completed = TRUE;
- }else{
- $this->is_completed = FALSE;
- }
- }
-
-
- function check()
- {
- $message = array();
-
- if(!is_numeric( $this->optional['session_lifetime'])){
- $message[] = _("Session lifetime must be a numeric value!");
- }
-
- if(!is_numeric( $this->optional['max_ldap_query_time'])){
- $message[] = _("Maximum LDAP query time must be a numeric value!");
- }
-
- return($message);
- }
-
-
- /* Attributes that are interesting for configuration generation */
- function get_attributes()
- {
- $tmp = setup_step::get_attributes();
- foreach(array("optional") as $attr){
- $tmp[$attr]= $this->$attr;
- }
- return($tmp);
- }
-
-}
-
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
-?>
diff --git a/gosa-core/setup/setup_config1.tpl b/gosa-core/setup/setup_config1.tpl
+++ /dev/null
@@ -1,225 +0,0 @@
-<div class='default'>
- <p><b>{t}Look and feel{/t}</b></p>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Theme{/t}
- </div>
- <div class='step4_value'>
- <select name="theme" size=1>
- {html_options options=$themes selected=$theme}
- </select>
- </div>
- </div>
-
- <p><b>{t}Apache{/t}</b></p>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Compress output send to browser{/t}
- </div>
- <div class='step4_value'>
- <select name="compressed" size=1>
- {html_options options=$bool selected=$compressed}
- </select>
- </div>
- </div>
- <p><b>{t}People and group storage{/t}</b></p>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}People DN attribute{/t}
- </div>
- <div class='step4_value'>
- <select size="1" name="peopledn">
- {html_options values=$peopledns output=$peopledns selected=$peopledn}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}People storage subtree{/t}
- </div>
- <div class='step4_value'>
- <input type='text' name='peopleou' maxlength='40' size='40' value='{$peopleou}'>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Group storage subtree{/t}
- </div>
- <div class='step4_value'>
- <input type='text' name='groupou' maxlength='40' size='40' value='{$groupou}'>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Include personal title in user DN{/t}
- </div>
- <div class='step4_value'>
- <select name="include_personal_title" size="1" title="">
- {html_options options=$bool selected=$include_personal_title}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Relaxed naming policies{/t}
- </div>
- <div class='step4_value'>
- <select name="strict" size="1" title="">
- {html_options options=$bool selected=$strict}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Automatic UIDs{/t}
- </div>
- <div class='step4_value'>
- {if $id_settings.idgen_active == FALSE}
- <input type='checkbox' value='1' name='idgen_active'
- onClick='changeState("idgen");'>
- <input size='20' id='idgen' name='idgen' type='text' value='{$id_settings.idgen}' disabled>
- {else}
- <input type='checkbox' value='1' name='idgen_active' checked>
- <input size='20' id='idgen' name='idgen' type='text' value='{$id_settings.idgen}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}GID / UID min id{/t}
- </div>
- <div class='step4_value'>
- {if $id_settings.minid_active == FALSE}
- <input type='checkbox' value='1' name='minid_active'
- onClick='changeState("minid");'>
- <input size='10' id='minid' name='minid' type='text' value='{$id_settings.minid}' disabled>
- {else}
- <input type='checkbox' value='1' name='minid_active' checked>
- <input size='10' id='minid' name='minid' type='text' value='{$id_settings.minid}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container' style="margin-bottom:5px;">
- <div class='step4_name'>
- {t}Number base for people/groups{/t}
- </div>
- <div class='step4_value'>
- <input type='text' name='uidbase' maxlength='20' size='10' value='{$uidbase}'>
- </div>
- </div>
- <div class='step4_container' style="margin-bottom:5px;">
- <div class='step4_name'>
- {t}Hook for number base{/t}
- </div>
- <div class='step4_value'>
- {if $base_hook_active == FALSE}
- <input type='checkbox' value='1' name='base_hook_active'
- onClick='changeState("base_hook");'>
- <input id='base_hook' name='base_hook' size=40 type='text' value='{$base_hook}' disabled>
- {else}
- <input type='checkbox' value='1' name='base_hook_active' checked>
- <input id='base_hook' name='base_hook' size=40 type='text' value='{$base_hook}' >
- {/if}
- </div>
- </div>
- </div>
-
- <p><b>{t}Password settings{/t}</b></p>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Password encryption algorithm{/t}
- </div>
- <div class='step4_value'>
- <select name="encryption" size="1" title="">
- {html_options options=$crypt_methods selected=$encryption}
- </select>
- </div>
- </div>
-
- <div class='step4_container' style='height:4em;'>
- <div class='step4_name' style='height:4em;'>
- {t}Password restrictions{/t}
- </div>
- <div class='step4_value' style='height:4em;'>
-
- {if $pwd_rules.pwminlen_active == FALSE}
- <input type='checkbox' value='1' name='pwminlen_active'
- onClick='changeState("pwminlen");'>
- {t}Password minimum length{/t}
- <input id='pwminlen' name='pwminlen' type='text' value='{$pwd_rules.pwminlen}' size=3 disabled>
- {else}
- <input type='checkbox' value='1' name='pwminlen_active' checked>
- {t}Password minimum length{/t}
- <input id='pwminlen' name='pwminlen' type='text' value='{$pwd_rules.pwminlen}' size=3 >
- {/if}
- <br>
- {if $pwd_rules.pwdiffer_active == FALSE}
- <input type='checkbox' value='1' name='pwdiffer_active'
- onClick='changeState("pwdiffer");'>
- {t}Different characters from old password{/t}
- <input id='pwdiffer' name='pwdiffer' type='text' value='{$pwd_rules.pwdiffer}' size=3 disabled>
- {else}
- <input type='checkbox' value='1' name='pwdiffer_active' checked>
- {t}Different characters from old password{/t}
- <input id='pwdiffer' name='pwdiffer' type='text' value='{$pwd_rules.pwdiffer}' size=3 >
- {/if}
-
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Password change hook{/t}
- </div>
- <div class='step4_value'>
- {if $pwd_rules.externalpwdhook_active == FALSE}
- <input type='checkbox' value='1' name='externalpwdhook_active'
- onClick='changeState("externalpwdhook");'>
- <input size=40 id='externalpwdhook' name='externalpwdhook' type='text' value='{$pwd_rules.externalpwdhook}' disabled>
- {else}
- <input type='checkbox' value='1' name='externalpwdhook_active' checked>
- <input size=40 id='externalpwdhook' name='externalpwdhook' type='text' value='{$pwd_rules.externalpwdhook}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Use SASL for kerberos{/t}
- </div>
- <div class='step4_value'>
- <select name="krbsasl" size="1" title="">
- {html_options options=$bool selected=$krbsasl}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Use account expiration{/t}
- </div>
- <div class='step4_value'>
- <select name="account_expiration" size="1" title="">
- {html_options options=$bool selected=$account_expiration}
- </select>
- </div>
- </div>
-
-
-<input type='hidden' value='1' name='step5_posted'>
-<!--
- {t}GOsa supports several encryption types for your passwords. Normally this is adjustable via user templates, but you can specify a default method to be used here, too.{/t}
- {t}GOsa always acts as admin and manages access rights internally. This is a workaround till OpenLDAP's in directory ACI's are fully implemented. For this to work, we need the admin DN and the corresponding password.{/t}
- {t}Some basic LDAP parameters are tunable and affect the locations where GOsa saves people and groups, including the way accounts get created. Check the values below if the fit your needs.{/t}
- {t}GOsa has modular support for several mail methods. These methods provide interfaces to users mailboxes and general handling for quotas. You can choose the dummy plugin to leave all your mail settings untouched.{/t}-->
-
diff --git a/gosa-core/setup/setup_config2.tpl b/gosa-core/setup/setup_config2.tpl
+++ /dev/null
@@ -1,294 +0,0 @@
-<div class='default' style='margin:12px; '>
- <p><b>{t}Samba settings{/t}</b></p>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Samba hash generator{/t}
- </div>
- <div class='step4_value'>
- <input size=40 id='smbhash' name='smbhash' type='text' value='{$samba_settings.smbhash}' >
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Samba SID{/t}
- </div>
- <div class='step4_value'>
- {if $samba_settings.samba_sid_active == FALSE}
- <input type='checkbox' value='1' name='samba_sid_active'
- onClick='changeState("samba_sid");'>
- <input size=20 id='samba_sid' name='samba_sid' type='text' value='{$samba_settings.samba_sid}' disabled>
- {else}
- <input type='checkbox' value='1' name='samba_sid_active' checked {if !$sambaDomain_found} disabled {/if}>
- <input size=20 id='samba_sid' name='samba_sid' type='text' value='{$samba_settings.samba_sid}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}RID base{/t}
- </div>
- <div class='step4_value'>
- {if $samba_settings.samba_rid_active == FALSE}
- <input type='checkbox' value='1' name='samba_rid_active'
- onClick='changeState("samba_rid");'>
- <input size=20 id='samba_rid' name='samba_rid' type='text' value='{$samba_settings.samba_rid}' disabled>
- {else}
- <input type='checkbox' value='1' name='samba_rid_active' checked {if !$sambaDomain_found} disabled {/if}>
- <input size=20 id='samba_rid' name='samba_rid' type='text' value='{$samba_settings.samba_rid}' >
- {/if}
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Workstation container{/t}
- </div>
- <div class='step4_value'>
- {if $generic_settings.wws_ou_active == FALSE}
- <input type='checkbox' value='1' name='wws_ou_active'
- onClick='changeState("wws_ou");'>
- <input size=40 id='wws_ou' name='wws_ou' type='text' value='{$generic_settings.wws_ou}' disabled>
- {else}
- <input type='checkbox' value='1' name='wws_ou_active' checked>
- <input size=40 id='wws_ou' name='wws_ou' type='text' value='{$generic_settings.wws_ou}' >
- {/if}
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Samba SID mapping{/t}
- </div>
- <div class='step4_value'>
- <select name="sambaidmapping" size="1" title="">
- {html_options options=$bool selected=$sambaidmapping}
- </select>
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Timezone{/t}
- </div>
- <div class='step4_value'>
- <select name='timezone' title='{t}Please choose your preferred timezone here{/t}' style="width:100%" size=1>
- {foreach from=$timezones.TIMEZONES item=val key=key}
- {if $key == $timezone}
- {if isset($timezones.DST_ZONES.$key)}
- <option selected value="{$key}">{$key} (DST)</option>
- {else}
- <option selected value="{$key}">{$key} (GMT)</option>
- {/if}
- {else}
- {if isset($timezones.DST_ZONES.$key)}
- <option value="{$key}">{$key} (DST)</option>
- {else}
- <option value="{$key}">{$key} (GMT)</option>
- {/if}
- {/if}
- {/foreach}
-
- </select>
- </div>
- </div>
-
-
- <p><b>{t}Additional GOsa settings{/t}</b></p>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Enable Copy & Paste{/t}
- </div>
- <div class='step4_value'>
-
- <select name="enableCopyPaste" size="1" title="">
- {html_options options=$bool selected=$generic_settings.enableCopyPaste}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Government mode{/t}
- </div>
- <div class='step4_value'>
- <select name="governmentmode" size="1" title="">
- {html_options options=$bool selected=$governmentmode}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}GOsa logging{/t}
- </div>
- <div class='step4_value'>
- {if $logging}
- <input checked type='checkbox' name='logging' value='1' class='center'>
- {else}
- <input type='checkbox' name='logging' value='1' class='center'>
- {/if}
- </div>
- </div>
-
-
- <p><b>{t}Mail settings{/t}</b></p>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Mail method{/t}
- </div>
- <div class='step4_value'>
- <select name="mail" size="1" title="" onChange="document.mainform.submit();">
- <option value="disabled">{t}disabled{/t}</option>
- {foreach from=$mail_methods item=item}
- <option value="{$item.name}" {if $mail == $item.name} selected {/if}>{$item.name}</option>
- {/foreach}
- </select>
- </div>
- <div class='step4_status'>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Account identification attribute{/t}
- </div>
- <div class='step4_value'>
- <select name="mail_attrib" size="1" {if $mail == "disabled"} disabled {/if}>
- <option value="mail" {if $mail_attrib == "mail"} selected {/if} >mail</option>
- <option value="uid" {if $mail_attrib == "uid"} selected {/if} >uid</option>
- </select>
- </div>
- <div class='step4_status'>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Vacation templates{/t}
- </div>
- <div class='step4_value'>
- {if $mail_settings.vacationdir_active == FALSE}
- <input type='checkbox' value='1' name='vacationdir_active'
- onClick='changeState("vacationdir");'>
- <input size=40 id='vacationdir' name='vacationdir' type='text' value='{$mail_settings.vacationdir}' disabled>
- {else}
- <input type='checkbox' value='1' name='vacationdir_active' checked>
- <input size=40 id='vacationdir' name='vacationdir' type='text' value='{$mail_settings.vacationdir}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Use Cyrus UNIX style{/t}
- </div>
- <div class='step4_value'>
- <select name="cyrusunixstyle" size="1" title="">
- {html_options options=$bool selected=$cyrusunixstyle}
- </select>
- </div>
- </div>
-
-
- <p><b>{t}Snapshots / Undo{/t}</b></p>
- {if $generic_settings.snapshot_active == FALSE}
- <div class='step4_container'>
- <div class='step4_name'>
- <input type='checkbox' value='1' name='snapshot_active'
- onClick='
- changeState("snapshot_base");
- changeState("snapshot_server");
- changeState("snapshot_user");
- changeState("snapshot_password");'>{t}Enable snapshots{/t}
- </div>
- </div>
- <div style='margin-left:10px;'>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Snapshot base{/t}
- </div>
- <div class='step4_value'>
- <input style='width:220' id='snapshot_base' name='snapshot_base'
- type='text' value='{$generic_settings.snapshot_base}' disabled>
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Server{/t}
- </div>
- <div class='step4_value'>
- <input style='width:220' id='snapshot_server' name='snapshot_server'
- type='text' value='{$generic_settings.snapshot_server}' disabled>
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}User{/t}
- </div>
- <div class='step4_value'>
- <input style='width:220' id='snapshot_user' name='snapshot_user'
- type='text' value='{$generic_settings.snapshot_user}' disabled>
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Password{/t}
- </div>
- <div class='step4_value'>
- <input style='width:220' id='snapshot_password' name='snapshot_password'
- type='password' value='{$generic_settings.snapshot_password}' disabled>
- </div>
- </div>
- </div>
-
- {else}
- <div class='step4_container'>
- <div class='step4_name'>
- <input type='checkbox' value='1' name='snapshot_active' checked>{t}Enable snapshots{/t}
- </div>
- </div>
- <div style='margin-left:10px;'>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Snapshot base{/t}
- </div>
- <div class='step4_value'>
- <input style='width:220' id='snapshot_base' name='snapshot_base'
- type='text' value='{$generic_settings.snapshot_base}'>
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Server{/t}
- </div>
- <div class='step4_value'>
- <input style='width:220' id='snapshot_server' name='snapshot_server'
- type='text' value='{$generic_settings.snapshot_server}'>
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}User{/t}
- </div>
- <div class='step4_value'>
- <input style='width:220' id='snapshot_user' name='snapshot_user'
- type='text' value='{$generic_settings.snapshot_user}'>
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Password{/t}
- </div>
- <div class='step4_value'>
- <input style='width:220;' id='snapshot_password' name='snapshot_password'
- type='password' value='{$generic_settings.snapshot_password}'>
- </div>
- </div>
- </div>
- {/if}
-</div>
-
-<input type='hidden' value='1' name='step6_posted'>
-<div style="clear:both"></div>
diff --git a/gosa-core/setup/setup_config3.tpl b/gosa-core/setup/setup_config3.tpl
+++ /dev/null
@@ -1,321 +0,0 @@
-<div class='default' style='margin:12px; '>
- <p><b>{t}GOsa core settings{/t}</b></p>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Enable primary group filter{/t}
- </div>
- <div class='step4_value'>
-
- <select name="noprimarygroup" size="1" title="">
- {html_options options=$bool selected=$optional.noprimarygroup}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Display summary in listings{/t}
- </div>
- <div class='step4_value'>
-
- <select name="list_summary" size="1" title="">
- {html_options options=$bool selected=$optional.list_summary}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Honour administrative units{/t}
- </div>
- <div class='step4_value'>
-
- <select name="strict_units" size="1" title="">
- {html_options options=$bool selected=$optional.strict_units}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Smarty compile directory{/t}
- </div>
- <div class='step4_value'>
- <input size=40 id='templateCompileDirectory' name='templateCompileDirectory'
- type='text' value='{$optional.templateCompileDirectory}'>
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}SNMP community{/t}
- </div>
- <div class='step4_value'>
- <input size=40 id='snmpcommunity' name='snmpcommunity'
- type='text' value='{$optional.snmpcommunity}'>
- </div>
- </div>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Path for PPD storage{/t}
- </div>
- <div class='step4_value'>
- {if $optional.ppd_path_active == FALSE}
- <input type='checkbox' value='1' name='ppd_path_active'
- onClick='changeState("ppd_path");'>
- <input size=40 id='ppd_path' name='ppd_path' type='text' value='{$optional.ppd_path}' disabled>
- {else}
- <input type='checkbox' value='1' name='ppd_path_active' checked
- onClick='changeState("ppd_path");'>
- <input size=40 id='ppd_path' name='ppd_path' type='text' value='{$optional.ppd_path}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Path for kiosk profile storage{/t}
- </div>
- <div class='step4_value'>
- {if $optional.kioskpath_active == FALSE}
- <input type='checkbox' value='1' name='kioskpath_active'
- onClick='changeState("kioskpath");'>
- <input size=40 id='kioskpath' name='kioskpath'
- type='text' value='{$optional.kioskpath}' disabled>
- {else}
- <input type='checkbox' value='1' name='kioskpath_active' checked
- onClick='changeState("kioskpath");'>
- <input size=40 id='kioskpath' name='kioskpath'
- type='text' value='{$optional.kioskpath}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}SUDO role base{/t}
- </div>
- <div class='step4_value'>
- {if $optional.sudoou_active == FALSE}
- <input type='checkbox' value='1' name='sudoou_active'
- onClick='changeState("sudoou");'>
- <input size=40 id='sudoou' name='sudoou'
- type='text' value='{$optional.sudoou}' disabled>
- {else}
- <input type='checkbox' value='1' name='sudoou_active' checked
- onClick='changeState("sudoou");'>
- <input size=40 id='sudoou' name='sudoou'
- type='text' value='{$optional.sudoou}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Notification script{/t}
- </div>
- <div class='step4_value'>
- {if $optional.notifydir_active == FALSE}
- <input type='checkbox' value='1' name='notifydir_active'
- onClick='changeState("notifydir");'>
- <input size=40 id='notifydir' name='notifydir'
- type='text' value='{$optional.notifydir}' disabled>
- {else}
- <input type='checkbox' value='1' name='notifydir_active' checked
- onClick='changeState("notifydir");'>
- <input size=40 id='notifydir' name='notifydir'
- type='text' value='{$optional.notifydir}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Enable edit locking{/t}
- </div>
- <div class='step4_value'>
- {if $optional.uniq_identifier_active == FALSE}
- <input type='checkbox' value='1' name='uniq_identifier_active'
- onClick='changeState("uniq_identifier");'>
- <select name="uniq_identifier" id="uniq_identifier" disabled size=1>
- {html_options options=$uniq_identifiers selected=$optional.uniq_identifier}
- </select>
- {else}
- <input type='checkbox' value='1' name='uniq_identifier_active' checked
- onClick='changeState("uniq_identifier");'>
- <select name="uniq_identifier" id="uniq_identifier" size=1>
- {html_options options=$uniq_identifiers selected=$optional.uniq_identifier}
- </select>
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Gosa support daemon{/t}
- </div>
- <div class='step4_value'>
- {if $optional.gosaSupportURI_active == FALSE}
- <input type='checkbox' value='1' name='gosaSupportURI_active'
- onClick='changeState("gosaSupportURI");changeState("gosaSupportTimeout");'>
- <input size=40 id='gosaSupportURI' name='gosaSupportURI'
- type='text' value='{$optional.gosaSupportURI}' disabled>
- {else}
- <input type='checkbox' value='1' name='gosaSupportURI_active' checked
- onClick='changeState("gosaSupportURI");changeState("gosaSupportTimeout");'>
- <input size=40 id='gosaSupportURI' name='gosaSupportURI'
- type='text' value='{$optional.gosaSupportURI}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Daemon timeout{/t}
- </div>
- <div class='step4_value'>
- {if $optional.gosaSupportURI_active == FALSE}
- <input size=40 id='gosaSupportTimeout' name='gosaSupportTimeout'
- type='text' value='{$optional.gosaSupportTimeout}' disabled>
- {else}
- <input size=40 id='gosaSupportTimeout' name='gosaSupportTimeout'
- type='text' value='{$optional.gosaSupportTimeout}' >
- {/if}
- </div>
- </div>
-
-
- <p><b>{t}Login and session{/t}</b></p>
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Login attribute{/t}
- </div>
- <div class='step4_value'>
- <select name="login_attribute" size="1" title="">
- {html_options options=$login_attributes selected=$optional.login_attribute}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Enforce register_globals to be deactivated{/t}
- </div>
- <div class='step4_value'>
-
- <select name="forceglobals" size="1" title="">
- {html_options options=$bool selected=$optional.forceglobals}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Enforce encrypted connections{/t}
- </div>
- <div class='step4_value'>
-
- <select name="forceSSL" size="1" title="">
- {html_options options=$bool selected=$optional.forceSSL}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Warn if session is not encrypted{/t}
- </div>
- <div class='step4_value'>
-
- <select name="warnSSL" size="1" title="">
- {html_options options=$bool selected=$optional.warnSSL}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Remember dialog filter settings{/t}
- </div>
- <div class='step4_value'>
-
- <select name="user_filter_cookie" size="1" title="">
- {html_options options=$bool selected=$optional.user_filter_cookie}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Session lifetime{/t}
- </div>
- <div class='step4_value'>
- <input size=10 id='session_lifetime' name='session_lifetime'
- type='text' value='{$optional.session_lifetime}'>
- </div>
- </div>
-
-
- <p><b>{t}Debugging{/t}</b></p>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Show PHP errors{/t}
- </div>
- <div class='step4_value'>
- <select name="errorlvl" size="1" title="">
- {html_options options=$bool selected=$errorlvl}
- </select>
- </div>
- </div>
-
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Maximum LDAP query time{/t}
- </div>
- <div class='step4_value'>
- {if $optional.max_ldap_query_time_active == FALSE}
- <input type='checkbox' value='1' name='max_ldap_query_time_active'
- onClick='changeState("max_ldap_query_time");'>
- <input size=10 id='max_ldap_query_time' name='max_ldap_query_time'
- type='text' value='{$optional.max_ldap_query_time}' disabled>
- {else}
- <input type='checkbox' value='1' name='max_ldap_query_time_active' checked>
- <input size=10 id='max_ldap_query_time' name='max_ldap_query_time'
- type='text' value='{$optional.max_ldap_query_time}' >
- {/if}
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Log LDAP statistics{/t}
- </div>
- <div class='step4_value'>
-
- <select name="ldapstats" size="1" title="">
- {html_options options=$bool selected=$optional.ldapstats}
- </select>
- </div>
- </div>
-
- <div class='step4_container'>
- <div class='step4_name'>
- {t}Debug level{/t}
- </div>
- <div class='step4_value'>
- <select name='debugLevel' size=1>
- {if $optional.debugLevel == 0}
- <option value='0' selected>0 {t}Disabled{/t}</option>
- <option value='1'>1 {t}Enabled{/t}</option>
- {else}
- <option value='0'>0 {t}Disabled{/t}</option>
- <option value='1' selected>1 {t}Enabled{/t}</option>
- {/if}
- </select>
- </div>
- </div>
-</div>
-
-<input type='hidden' value='1' name='step6a_posted'>