X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=setup%2Fclass_setupStep_Config1.inc;h=8d4cf4f969e7e4ad43987f6af7b1937aa3278505;hb=f9e2a15ea3578c6c86efef30a0c8ebededefbb9e;hp=6a5e8e2ea06b5cab11d89d302bf0684b96fee19a;hpb=7c5aa0d66296f004dd04f823c01bbfd260b9fab6;p=gosa.git diff --git a/setup/class_setupStep_Config1.inc b/setup/class_setupStep_Config1.inc index 6a5e8e2ea..8d4cf4f96 100644 --- a/setup/class_setupStep_Config1.inc +++ b/setup/class_setupStep_Config1.inc @@ -27,20 +27,25 @@ class Step_Config1 extends setup_step var $groupou = "ou=groups"; var $peopledn = "cn"; var $uidbase = 1000; + var $krbsasl = FALSE; + var $strict = TRUE; + var $header_image = "images/ldapserver.png"; var $account_expiration =FALSE; - var $base_hook = "/usr/bin/sudo myscript"; + var $base_hook = ""; var $base_hook_active = FALSE; var $encryption = "crypt"; var $theme = "default"; var $errorlvl = FALSE; + var $include_personal_title = FALSE; + var $pwd_rules = array("pwminlen" => 6, "pwminlen_active" => FALSE, "pwdiffer" => 5, "pwdiffer_active" => FALSE, - "externalpwdhook" => "/path/to/your/script username oldpassword newpassword", + "externalpwdhook" => "", "externalpwdhook_active" => FALSE); var $id_settings = array( "idgen" => "{%sn}-{%givenName[2-4]}", @@ -50,8 +55,8 @@ class Step_Config1 extends setup_step var $crypt_methods = array(); - var $attributes = array("peopleou","groupou","peopledn","uidbase","encryption","theme","errorlvl", - "base_hook","base_hook_active","account_expiration"); + var $attributes = array("peopleou","groupou","peopledn","uidbase","encryption","theme","errorlvl","krbsasl", + "base_hook","base_hook_active","account_expiration","strict","include_personal_title"); function Step_Config1() { @@ -84,6 +89,11 @@ class Step_Config1 extends setup_step foreach($this->attributes as $attr){ $smarty->assign($attr,$this->$attr); } + + /* !!! 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"))); } @@ -140,6 +150,17 @@ class Step_Config1 extends setup_step } } + /* !!! 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'])){