110 if(is_object(self::$instance))
131 $this->password_chars_and_numbers_enabled = $a_chars_and_numbers_enabled;
155 $this->password_special_chars_enabled = $a_password_special_chars_enabled;
177 $this->password_min_length = $a_password_min_length;
197 $this->password_max_length = $a_password_max_length;
217 $this->password_max_age = $a_password_max_age;
237 $this->login_max_attempts = $a_login_max_attempts;
258 $this->https_header_enable = $varname;
268 $this->https_header_name = $varname;
278 $this->https_header_value = $varname;
318 $this->https_enable = $value;
340 $this->password_change_on_first_login_enabled = $a_password_change_on_first_login_enabled;
370 $this->protect_admin_role = $a_stat;
385 if($rbacreview->isAssigned($a_usr_id,SYSTEM_ROLE_ID))
429 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data ".
430 "WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,
'integer').
" ".
431 "AND object_data.type = 'ps' ".
432 "AND object_reference.ref_id = tree.child ".
433 "AND object_reference.obj_id = object_data.obj_id";
436 $this->ref_id =
$row[
"ref_id"];
438 $this->https_header_enable = (bool) $this->settings->get(
'ps_auto_https_enabled',
false);
439 $this->https_header_name = (string) $this->settings->get(
'ps_auto_https_headername',
"ILIAS_HTTPS_ENABLED");
440 $this->https_header_value = (string) $this->settings->get(
'ps_auto_https_headervalue',
"1");
441 $this->https_enable = (boolean) $this->settings->get(
'https',
false);
443 $this->password_chars_and_numbers_enabled = (bool) $this->settings->get(
'ps_password_chars_and_numbers_enabled', self::DEFAULT_PASSWORD_CHARS_AND_NUMBERS_ENABLED);
444 $this->password_special_chars_enabled = (bool) $this->settings->get(
'ps_password_special_chars_enabled', self::DEFAULT_PASSWORD_SPECIAL_CHARS_ENABLED);
445 $this->password_min_length = (int) $this->settings->get(
'ps_password_min_length', self::DEFAULT_PASSWORD_MIN_LENGTH);
446 $this->password_max_length = (int) $this->settings->get(
'ps_password_max_length', self::DEFAULT_PASSWORD_MAX_LENGTH);
447 $this->password_max_age = (int) $this->settings->get(
'ps_password_max_age', self::DEFAULT_PASSWORD_MAX_AGE);
448 $this->login_max_attempts = (int) $this->settings->get(
'ps_login_max_attempts', self::DEFAULT_LOGIN_MAX_ATTEMPTS);
449 $this->password_ucase_chars_num = (int) $this->settings->get(
'ps_password_uppercase_chars_num', 0);
450 $this->password_lcase_chars_num = (int) $this->settings->get(
'ps_password_lowercase_chars_num', 0);
451 $this->password_must_not_contain_loginname = $this->settings->get(
'ps_password_must_not_contain_loginame', 0) ==
'1' ?
true :
false;
453 $this->password_change_on_first_login_enabled = (bool) $this->settings->get(
'ps_password_change_on_first_login_enabled', self::DEFAULT_PASSWORD_CHANGE_ON_FIRST_LOGIN_ENABLED);
454 $this->prevent_simultaneous_logins = (bool) $this->settings->get(
'ps_prevent_simultaneous_logins', self::DEFAULT_PREVENT_SIMULTANEOUS_LOGINS);
456 $this->protect_admin_role = (bool) $this->settings->get(
'ps_protect_admin',$this->protect_admin_role);
470 include_once
"Services/PrivacySecurity/classes/class.ilObjPrivacySecurityGUI.php";
479 return ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS;
482 include_once
'./Services/Http/classes/class.ilHTTPS.php';
495 $a_form->getItemByPostVar(
'https_enabled')
524 $a_form->getItemByPostVar(
'password_min_length')
538 $a_form->getItemByPostVar(
'password_max_length')
578 $code = $password_min_length_error_code;
585 $a_form->getItemByPostVar(
'password_min_length')
598 $a_form->getItemByPostVar(
'password_max_length')
612 $a_form->getItemByPostVar(
'password_max_age')
626 $a_form->getItemByPostVar(
'login_max_attempts')
663 $this->prevent_simultaneous_logins = (bool)$value;
708 $this->password_must_not_contain_loginname = $status;