From: hickert Date: Wed, 4 Apr 2007 06:56:20 +0000 (+0000) Subject: Added missing snapshot attribute X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a6924bf4d2c64b0363d6c2e84c24364ffb6dc840;p=gosa.git Added missing snapshot attribute git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5964 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/setup/class_setupStep6.inc b/setup/class_setupStep6.inc index 2f978e146..eb25438a7 100644 --- a/setup/class_setupStep6.inc +++ b/setup/class_setupStep6.inc @@ -34,11 +34,12 @@ class setup_step_6 extends setup_step "minid_active" => FALSE, "wws_ou" => "ou=winstations", "wws_ou_active" => FALSE, - "snapshot_active"=> FALSE, - "snapshot_base" => "ou=snapshots,%base%", - "snapshot_user" => "cn=ldapadmin,%base%", - "snapshot_password" => "", - "snapshot_server" => "%connection%"); + "snapshot_active" => FALSE, + "snapshot_base" => "ou=snapshots,%base%", + "snapshot_ldap_base" => "%base%", + "snapshot_user" => "cn=ldapadmin,%base%", + "snapshot_password" => "", + "snapshot_server" => "%connection%"); var $samba_settings = array( "samba_sid" => "0-815-4711", "samba_sid_active" => FALSE, @@ -58,7 +59,7 @@ class setup_step_6 extends setup_step { /* 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(array("snapshot_ldap_base","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]); @@ -131,6 +132,9 @@ class setup_step_6 extends setup_step if(isset($_POST['snapshot_server'])){ $this->generic_settings['snapshot_server'] = $_POST['snapshot_server']; } + if(isset($_POST['snapshot_ldap_base'])){ + $this->generic_settings['snapshot_ldap_base'] = $_POST['snapshot_ldap_base']; + } }else{ $this->generic_settings['snapshot_active'] = FALSE; } diff --git a/setup/setup_step6.tpl b/setup/setup_step6.tpl index d67f255b9..5c0c7b212 100644 --- a/setup/setup_step6.tpl +++ b/setup/setup_step6.tpl @@ -185,10 +185,15 @@ changeState("snapshot_user"); changeState("snapshot_password");'>{t}Enable{/t}
- {t}Base{/t}  + {t}Snapshot base{/t} 

+
+ {t}Ldap base{/t}  +
+
{t}Server{/t} 
@@ -207,10 +212,15 @@ {else} {t}Enable{/t}
- {t}Base{/t}  + {t}Snapshot base{/t} 

+
+ {t}Ldap base{/t}  +
+
{t}Server{/t}