index 6531f36859060297949bf38f57c7e3b6df2d2619..8d4cf4f969e7e4ad43987f6af7b1937aa3278505 100644 (file)
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";
"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]}",
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()
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")));
}
}
}
+ /* !!! 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'])){