X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=setup%2Fclass_setupStep_Config1.inc;h=8d4cf4f969e7e4ad43987f6af7b1937aa3278505;hb=6557949139db5e19dfc46394a76396440efa1dd3;hp=6531f36859060297949bf38f57c7e3b6df2d2619;hpb=841593596829d860f3acf145bbf187767d0dcf7a;p=gosa.git diff --git a/setup/class_setupStep_Config1.inc b/setup/class_setupStep_Config1.inc index 6531f3685..8d4cf4f96 100644 --- a/setup/class_setupStep_Config1.inc +++ b/setup/class_setupStep_Config1.inc @@ -27,12 +27,12 @@ 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"; @@ -45,7 +45,7 @@ class Step_Config1 extends setup_step "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]}", @@ -55,7 +55,7 @@ class Step_Config1 extends setup_step var $crypt_methods = array(); - var $attributes = array("peopleou","groupou","peopledn","uidbase","encryption","theme","errorlvl", + 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() @@ -89,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"))); } @@ -145,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'])){