ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSecuritySettings Class Reference

Singleton class that stores all security settings. More...

+ Collaboration diagram for ilSecuritySettings:

Public Member Functions

 getSecuritySettingsRefId ()
 setPasswordCharsAndNumbersEnabled ($a_chars_and_numbers_enabled)
 set if the passwords have to contain characters and numbers
 isPasswordCharsAndNumbersEnabled ()
 get boolean if the passwords have to contain characters and numbers
 setPasswordSpecialCharsEnabled ($a_password_special_chars_enabled)
 set if the passwords have to contain special characters
 isPasswordSpecialCharsEnabled ()
 get boolean if the passwords have to contain special characters
 setPasswordMinLength ($a_password_min_length)
 set the minimum length for passwords
 getPasswordMinLength ()
 get the minimum length for passwords
 setPasswordMaxLength ($a_password_max_length)
 set the maximum length for passwords
 getPasswordMaxLength ()
 get the maximum length for passwords
 setPasswordMaxAge ($a_password_max_age)
 set the maximum password age
 getPasswordMaxAge ()
 get the maximum password age
 setLoginMaxAttempts ($a_login_max_attempts)
 set the maximum count of login attempts
 getLoginMaxAttempts ()
 get the maximum count of login attempts
 setHTTPSEnabled ($value)
 Enable https for certain scripts.
 isHTTPSEnabled ()
 read access to https enabled property
 setPasswordChangeOnFirstLoginEnabled ($a_password_change_on_first_login_enabled)
 set if the passwords have to be changed by users on first login
 isPasswordChangeOnFirstLoginEnabled ()
 get boolean if the passwords have to be changed by users on first login
 isAdminRoleProtected ()
 Check if admin role is protected.
 protectedAdminRole ($a_stat)
 Set admin role protection status.
 checkAdminRoleAccessible ($a_usr_id)
 Check if the administrator role is accessible for a specific user.
 save ()
 Save settings.
 validate (ilPropertyFormGUI $a_form=null)
 validate settings
 isPreventionOfSimultaneousLoginsEnabled ()
 Prevention of simultaneous logins with the same account.
 setPreventionOfSimultaneousLogins ($value)
 Enable/Disable prevention of simultaneous logins with the same account.
 setPasswordNumberOfUppercaseChars ($password_ucase_chars_num)
 Set number of uppercase characters required.
 getPasswordNumberOfUppercaseChars ()
 Returns number of uppercase characters required.
 setPasswordNumberOfLowercaseChars ($password_lcase_chars_num)
 Set number of lowercase characters required.
 getPasswordNumberOfLowercaseChars ()
 Returns number of lowercase characters required.
 setPasswordMustNotContainLoginnameStatus ($status)
 Set whether the password must not contain the loginname or not.
 getPasswordMustNotContainLoginnameStatus ()
 Return whether the password must not contain the loginname or not.

Static Public Member Functions

static _getInstance ()
 Get instance of ilSecuritySettings.

Data Fields

const SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH = 4
const SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH = 5
const SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE = 6
const SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS = 7
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN1 = 11
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2 = 8
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3 = 9
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH = 10
const DEFAULT_PASSWORD_CHARS_AND_NUMBERS_ENABLED = true
const DEFAULT_PASSWORD_SPECIAL_CHARS_ENABLED = false
const DEFAULT_PASSWORD_MIN_LENGTH = 8
const DEFAULT_PASSWORD_MAX_LENGTH = 0
const DEFAULT_PASSWORD_MAX_AGE = 90
const DEFAULT_LOGIN_MAX_ATTEMPTS = 5
const DEFAULT_PASSWORD_CHANGE_ON_FIRST_LOGIN_ENABLED = false
const DEFAULT_PREVENT_SIMULTANEOUS_LOGINS = false

Static Public Attributes

static $SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS = 1
static $SECURITY_SETTINGS_ERR_CODE_HTTP_NOT_AVAILABLE = 2
static $SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE = 3

Private Member Functions

 __construct ()
 Private constructor: use _getInstance()
 read ()
 read settings

Private Attributes

 $db
 $settings
 $https_enable
 $password_chars_and_numbers_enabled = self::DEFAULT_PASSWORD_CHARS_AND_NUMBERS_ENABLED
 $password_special_chars_enabled = self::DEFAULT_PASSWORD_SPECIAL_CHARS_ENABLED
 $password_min_length = self::DEFAULT_PASSWORD_MIN_LENGTH
 $password_max_length = self::DEFAULT_PASSWORD_MAX_LENGTH
 $password_max_age = self::DEFAULT_PASSWORD_MAX_AGE
 $password_ucase_chars_num = 0
 $password_lcase_chars_num = 0
 $login_max_attempts = self::DEFAULT_LOGIN_MAX_ATTEMPTS
 $password_must_not_contain_loginname = false
 $password_change_on_first_login_enabled = self::DEFAULT_PASSWORD_CHANGE_ON_FIRST_LOGIN_ENABLED
 $prevent_simultaneous_logins = self::DEFAULT_PREVENT_SIMULTANEOUS_LOGINS
 $protect_admin_role = false

Static Private Attributes

static $instance = null

Detailed Description

Singleton class that stores all security settings.

Author
Roland Küstermann rolan.nosp@m.d@ku.nosp@m.ester.nosp@m.mann.nosp@m..com
Version
$Id$

/

Definition at line 34 of file class.ilSecuritySettings.php.

Constructor & Destructor Documentation

ilSecuritySettings::__construct ( )
private

Private constructor: use _getInstance()

private

Parameters

Definition at line 87 of file class.ilSecuritySettings.php.

References $ilDB, $ilSetting, and read().

{
global $ilSetting,$ilDB;
$this->db = $ilDB;
$this->settings = $ilSetting;
$this->read();
}

+ Here is the call graph for this function:

Member Function Documentation

ilSecuritySettings::checkAdminRoleAccessible (   $a_usr_id)

Check if the administrator role is accessible for a specific user.

Parameters
int$a_usr_id

Definition at line 313 of file class.ilSecuritySettings.php.

References isAdminRoleProtected().

{
global $rbacreview;
if(!$this->isAdminRoleProtected())
{
return true;
}
if($rbacreview->isAssigned($a_usr_id,SYSTEM_ROLE_ID))
{
return true;
}
return false;
}

+ Here is the call graph for this function:

ilSecuritySettings::getLoginMaxAttempts ( )

get the maximum count of login attempts

Returns
integer password max login attempts

Definition at line 242 of file class.ilSecuritySettings.php.

References $login_max_attempts.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getPasswordMaxAge ( )

get the maximum password age

Returns
integer password max age

Definition at line 222 of file class.ilSecuritySettings.php.

References $password_max_age.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getPasswordMaxLength ( )

get the maximum length for passwords

Returns
integer password max length

Definition at line 202 of file class.ilSecuritySettings.php.

References $password_max_length.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getPasswordMinLength ( )

get the minimum length for passwords

Returns
integer password min length

Definition at line 182 of file class.ilSecuritySettings.php.

References $password_min_length.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getPasswordMustNotContainLoginnameStatus ( )

Return whether the password must not contain the loginname or not.

Parameters
boolean

Definition at line 622 of file class.ilSecuritySettings.php.

References $password_must_not_contain_loginname.

Referenced by save().

+ Here is the caller graph for this function:

ilSecuritySettings::getPasswordNumberOfLowercaseChars ( )

Returns number of lowercase characters required.

Returns
integer

Definition at line 604 of file class.ilSecuritySettings.php.

References $password_lcase_chars_num.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getPasswordNumberOfUppercaseChars ( )

Returns number of uppercase characters required.

Returns
integer

Definition at line 586 of file class.ilSecuritySettings.php.

References $password_ucase_chars_num.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::getSecuritySettingsRefId ( )

Definition at line 114 of file class.ilSecuritySettings.php.

References $ref_id.

{
return $this->ref_id;
}
ilSecuritySettings::isAdminRoleProtected ( )

Check if admin role is protected.

Returns
type

Definition at line 295 of file class.ilSecuritySettings.php.

References $protect_admin_role.

Referenced by checkAdminRoleAccessible(), and save().

{
}

+ Here is the caller graph for this function:

ilSecuritySettings::isHTTPSEnabled ( )

read access to https enabled property

Returns
boolean true, if enabled, false otherwise

Definition at line 262 of file class.ilSecuritySettings.php.

References $https_enable.

Referenced by save(), and validate().

{
}

+ Here is the caller graph for this function:

ilSecuritySettings::isPasswordChangeOnFirstLoginEnabled ( )

get boolean if the passwords have to be changed by users on first login

Returns
boolean password change on first login enabled

Definition at line 286 of file class.ilSecuritySettings.php.

References $password_change_on_first_login_enabled.

Referenced by save().

+ Here is the caller graph for this function:

ilSecuritySettings::isPasswordCharsAndNumbersEnabled ( )

get boolean if the passwords have to contain characters and numbers

Returns
boolean characters and numbers enabled

Definition at line 138 of file class.ilSecuritySettings.php.

References $password_chars_and_numbers_enabled.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::isPasswordSpecialCharsEnabled ( )

get boolean if the passwords have to contain special characters

Returns
boolean password special chars enabled

Definition at line 162 of file class.ilSecuritySettings.php.

References $password_special_chars_enabled.

Referenced by save(), and validate().

+ Here is the caller graph for this function:

ilSecuritySettings::isPreventionOfSimultaneousLoginsEnabled ( )

Prevention of simultaneous logins with the same account.

Returns
boolean true, if prevention of simultaneous logins with the same account is enabled, false otherwise

Definition at line 558 of file class.ilSecuritySettings.php.

References $prevent_simultaneous_logins.

Referenced by save().

+ Here is the caller graph for this function:

ilSecuritySettings::protectedAdminRole (   $a_stat)

Set admin role protection status.

Parameters
type$a_stat

Definition at line 304 of file class.ilSecuritySettings.php.

{
$this->protect_admin_role = $a_stat;
}
ilSecuritySettings::read ( )
private

read settings

private

Parameters

Definition at line 358 of file class.ilSecuritySettings.php.

References $ilDB, $query, $res, $row, and DB_FETCHMODE_ASSOC.

Referenced by __construct().

{
global $ilDB;
$query = "SELECT object_reference.ref_id FROM object_reference,tree,object_data ".
"WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,'integer')." ".
"AND object_data.type = 'ps' ".
"AND object_reference.ref_id = tree.child ".
"AND object_reference.obj_id = object_data.obj_id";
$res = $this->db->query($query);
$this->ref_id = $row["ref_id"];
$this->https_enable = (boolean) $this->settings->get('https', false);
$this->password_chars_and_numbers_enabled = (bool) $this->settings->get('ps_password_chars_and_numbers_enabled', self::DEFAULT_PASSWORD_CHARS_AND_NUMBERS_ENABLED);
$this->password_special_chars_enabled = (bool) $this->settings->get('ps_password_special_chars_enabled', self::DEFAULT_PASSWORD_SPECIAL_CHARS_ENABLED);
$this->password_min_length = (int) $this->settings->get('ps_password_min_length', self::DEFAULT_PASSWORD_MIN_LENGTH);
$this->password_max_length = (int) $this->settings->get('ps_password_max_length', self::DEFAULT_PASSWORD_MAX_LENGTH);
$this->password_max_age = (int) $this->settings->get('ps_password_max_age', self::DEFAULT_PASSWORD_MAX_AGE);
$this->login_max_attempts = (int) $this->settings->get('ps_login_max_attempts', self::DEFAULT_LOGIN_MAX_ATTEMPTS);
$this->password_ucase_chars_num = (int) $this->settings->get('ps_password_uppercase_chars_num', 0);
$this->password_lcase_chars_num = (int) $this->settings->get('ps_password_lowercase_chars_num', 0);
$this->password_must_not_contain_loginname = $this->settings->get('ps_password_must_not_contain_loginame', 0) == '1' ? true : false;
$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);
$this->prevent_simultaneous_logins = (bool) $this->settings->get('ps_prevent_simultaneous_logins', self::DEFAULT_PREVENT_SIMULTANEOUS_LOGINS);
$this->protect_admin_role = (bool) $this->settings->get('ps_protect_admin',$this->protect_admin_role);
}

+ Here is the caller graph for this function:

ilSecuritySettings::save ( )

Save settings.

Definition at line 333 of file class.ilSecuritySettings.php.

References getLoginMaxAttempts(), getPasswordMaxAge(), getPasswordMaxLength(), getPasswordMinLength(), getPasswordMustNotContainLoginnameStatus(), getPasswordNumberOfLowercaseChars(), getPasswordNumberOfUppercaseChars(), isAdminRoleProtected(), isHTTPSEnabled(), isPasswordChangeOnFirstLoginEnabled(), isPasswordCharsAndNumbersEnabled(), isPasswordSpecialCharsEnabled(), and isPreventionOfSimultaneousLoginsEnabled().

{
$this->settings->set('https',(int) $this->isHTTPSEnabled());
$this->settings->set('ps_password_chars_and_numbers_enabled',(bool) $this->isPasswordCharsAndNumbersEnabled());
$this->settings->set('ps_password_special_chars_enabled',(bool) $this->isPasswordSpecialCharsEnabled());
$this->settings->set('ps_password_min_length',(int) $this->getPasswordMinLength());
$this->settings->set('ps_password_max_length',(int) $this->getPasswordMaxLength());
$this->settings->set('ps_password_max_age',(int) $this->getPasswordMaxAge());
$this->settings->set('ps_login_max_attempts',(int) $this->getLoginMaxAttempts());
$this->settings->set('ps_password_uppercase_chars_num', (int) $this->getPasswordNumberOfUppercaseChars());
$this->settings->set('ps_password_lowercase_chars_num', (int) $this->getPasswordNumberOfLowercaseChars());
$this->settings->set('ps_password_must_not_contain_loginame', (int) $this->getPasswordMustNotContainLoginnameStatus());
$this->settings->set('ps_password_change_on_first_login_enabled',(bool) $this->isPasswordChangeOnFirstLoginEnabled());
$this->settings->set('ps_prevent_simultaneous_logins', (int)$this->isPreventionOfSimultaneousLoginsEnabled());
$this->settings->set('ps_protect_admin', (int) $this->isAdminRoleProtected());
}

+ Here is the call graph for this function:

ilSecuritySettings::setHTTPSEnabled (   $value)

Enable https for certain scripts.

Parameters
boolean$value

Definition at line 252 of file class.ilSecuritySettings.php.

{
$this->https_enable = $value;
}
ilSecuritySettings::setLoginMaxAttempts (   $a_login_max_attempts)

set the maximum count of login attempts

Parameters
integer$a_login_max_attempts

Definition at line 232 of file class.ilSecuritySettings.php.

{
$this->login_max_attempts = $a_login_max_attempts;
}
ilSecuritySettings::setPasswordChangeOnFirstLoginEnabled (   $a_password_change_on_first_login_enabled)

set if the passwords have to be changed by users on first login

Parameters
boolean$a_password_change_on_first_login_enabled

Definition at line 274 of file class.ilSecuritySettings.php.

{
$this->password_change_on_first_login_enabled = $a_password_change_on_first_login_enabled;
}
ilSecuritySettings::setPasswordCharsAndNumbersEnabled (   $a_chars_and_numbers_enabled)

set if the passwords have to contain characters and numbers

Parameters
boolean$a_chars_and_numbers_enabled

Definition at line 126 of file class.ilSecuritySettings.php.

{
$this->password_chars_and_numbers_enabled = $a_chars_and_numbers_enabled;
}
ilSecuritySettings::setPasswordMaxAge (   $a_password_max_age)

set the maximum password age

Parameters
integer$a_password_max_age

Definition at line 212 of file class.ilSecuritySettings.php.

{
$this->password_max_age = $a_password_max_age;
}
ilSecuritySettings::setPasswordMaxLength (   $a_password_max_length)

set the maximum length for passwords

Parameters
integer$a_password_max_length

Definition at line 192 of file class.ilSecuritySettings.php.

{
$this->password_max_length = $a_password_max_length;
}
ilSecuritySettings::setPasswordMinLength (   $a_password_min_length)

set the minimum length for passwords

Parameters
integer$a_password_min_length

Definition at line 172 of file class.ilSecuritySettings.php.

{
$this->password_min_length = $a_password_min_length;
}
ilSecuritySettings::setPasswordMustNotContainLoginnameStatus (   $status)

Set whether the password must not contain the loginname or not.

Parameters
boolean

Definition at line 613 of file class.ilSecuritySettings.php.

{
$this->password_must_not_contain_loginname = $status;
}
ilSecuritySettings::setPasswordNumberOfLowercaseChars (   $password_lcase_chars_num)

Set number of lowercase characters required.

Parameters
integer

Definition at line 595 of file class.ilSecuritySettings.php.

References $password_lcase_chars_num.

{
$this->password_lcase_chars_num = $password_lcase_chars_num;
}
ilSecuritySettings::setPasswordNumberOfUppercaseChars (   $password_ucase_chars_num)

Set number of uppercase characters required.

Parameters
integer

Definition at line 577 of file class.ilSecuritySettings.php.

References $password_ucase_chars_num.

{
$this->password_ucase_chars_num = $password_ucase_chars_num;
}
ilSecuritySettings::setPasswordSpecialCharsEnabled (   $a_password_special_chars_enabled)

set if the passwords have to contain special characters

Parameters
boolean$a_password_special_chars_enabled

Definition at line 150 of file class.ilSecuritySettings.php.

{
$this->password_special_chars_enabled = $a_password_special_chars_enabled;
}
ilSecuritySettings::setPreventionOfSimultaneousLogins (   $value)

Enable/Disable prevention of simultaneous logins with the same account.

Parameters
boolean$value

Definition at line 568 of file class.ilSecuritySettings.php.

{
$this->prevent_simultaneous_logins = (bool)$value;
}
ilSecuritySettings::validate ( ilPropertyFormGUI  $a_form = null)

validate settings

Returns
0, if everything is ok, an error code otherwise

Definition at line 394 of file class.ilSecuritySettings.php.

References $password_min_length, $SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE, ilHTTPS\_checkHTTPS(), ilObjPrivacySecurityGUI\getErrorMessage(), getLoginMaxAttempts(), getPasswordMaxAge(), getPasswordMaxLength(), getPasswordMinLength(), getPasswordNumberOfLowercaseChars(), getPasswordNumberOfUppercaseChars(), isHTTPSEnabled(), isPasswordCharsAndNumbersEnabled(), isPasswordSpecialCharsEnabled(), SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS, SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE, SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH, SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH, SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH, SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN1, SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2, and SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3.

{
$code = null;
if ($a_form)
{
include_once "Services/PrivacySecurity/classes/class.ilObjPrivacySecurityGUI.php";
}
include_once './Services/Http/classes/class.ilHTTPS.php';
if ($this->isHTTPSEnabled())
{
{
if(!$a_form)
{
return $code;
}
else
{
$a_form->getItemByPostVar('https_enabled')
}
}
}
if( $this->getPasswordMinLength() < 0 )
{
if(!$a_form)
{
return $code;
}
else
{
$a_form->getItemByPostVar('password_min_length')
}
}
if( $this->getPasswordMaxLength() < 0 )
{
if(!$a_form)
{
return $code;
}
else
{
$a_form->getItemByPostVar('password_max_length')
}
}
{
{
}
{
}
}
{
{
}
}
{
}
{
$code = $password_min_length_error_code;
if(!$a_form)
{
return $code;
}
else
{
$a_form->getItemByPostVar('password_min_length')
}
}
if( $this->getPasswordMaxLength() > 0 && $this->getPasswordMaxLength() < $this->getPasswordMinLength() )
{
if(!$a_form)
{
return $code;
}
else
{
$a_form->getItemByPostVar('password_max_length')
}
}
if( $this->getPasswordMaxAge() < 0 )
{
if(!$a_form)
{
return $code;
}
else
{
$a_form->getItemByPostVar('password_max_age')
}
}
if( $this->getLoginMaxAttempts() < 0 )
{
if(!$a_form)
{
return $code;
}
else
{
$a_form->getItemByPostVar('login_max_attempts')
}
}
/*
* todo: have to check for local auth if first login password change is enabled??
* than: add errorcode
*/
if(!$a_form)
{
return 0;
}
else
{
return !(bool)$code;
}
}

+ Here is the call graph for this function:

Field Documentation

ilSecuritySettings::$db
private

Definition at line 50 of file class.ilSecuritySettings.php.

ilSecuritySettings::$https_enable
private

Definition at line 53 of file class.ilSecuritySettings.php.

Referenced by isHTTPSEnabled().

ilSecuritySettings::$instance = null
staticprivate

Definition at line 49 of file class.ilSecuritySettings.php.

Referenced by _getInstance().

ilSecuritySettings::$login_max_attempts = self::DEFAULT_LOGIN_MAX_ATTEMPTS
private

Definition at line 72 of file class.ilSecuritySettings.php.

Referenced by getLoginMaxAttempts().

ilSecuritySettings::$password_change_on_first_login_enabled = self::DEFAULT_PASSWORD_CHANGE_ON_FIRST_LOGIN_ENABLED
private

Definition at line 75 of file class.ilSecuritySettings.php.

Referenced by isPasswordChangeOnFirstLoginEnabled().

ilSecuritySettings::$password_chars_and_numbers_enabled = self::DEFAULT_PASSWORD_CHARS_AND_NUMBERS_ENABLED
private

Definition at line 65 of file class.ilSecuritySettings.php.

Referenced by isPasswordCharsAndNumbersEnabled().

ilSecuritySettings::$password_lcase_chars_num = 0
private
ilSecuritySettings::$password_max_age = self::DEFAULT_PASSWORD_MAX_AGE
private

Definition at line 69 of file class.ilSecuritySettings.php.

Referenced by getPasswordMaxAge().

ilSecuritySettings::$password_max_length = self::DEFAULT_PASSWORD_MAX_LENGTH
private

Definition at line 68 of file class.ilSecuritySettings.php.

Referenced by getPasswordMaxLength().

ilSecuritySettings::$password_min_length = self::DEFAULT_PASSWORD_MIN_LENGTH
private

Definition at line 67 of file class.ilSecuritySettings.php.

Referenced by getPasswordMinLength(), and validate().

ilSecuritySettings::$password_must_not_contain_loginname = false
private
ilSecuritySettings::$password_special_chars_enabled = self::DEFAULT_PASSWORD_SPECIAL_CHARS_ENABLED
private

Definition at line 66 of file class.ilSecuritySettings.php.

Referenced by isPasswordSpecialCharsEnabled().

ilSecuritySettings::$password_ucase_chars_num = 0
private
ilSecuritySettings::$prevent_simultaneous_logins = self::DEFAULT_PREVENT_SIMULTANEOUS_LOGINS
private
ilSecuritySettings::$protect_admin_role = false
private

Definition at line 78 of file class.ilSecuritySettings.php.

Referenced by isAdminRoleProtected().

ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS = 1
static
ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_HTTP_NOT_AVAILABLE = 2
static
ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE = 3
static
ilSecuritySettings::$settings
private

Definition at line 51 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_LOGIN_MAX_ATTEMPTS = 5

Definition at line 60 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_PASSWORD_CHANGE_ON_FIRST_LOGIN_ENABLED = false

Definition at line 62 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_PASSWORD_CHARS_AND_NUMBERS_ENABLED = true

Definition at line 55 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_PASSWORD_MAX_AGE = 90

Definition at line 59 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_PASSWORD_MAX_LENGTH = 0

Definition at line 58 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_PASSWORD_MIN_LENGTH = 8

Definition at line 57 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_PASSWORD_SPECIAL_CHARS_ENABLED = false

Definition at line 56 of file class.ilSecuritySettings.php.

const ilSecuritySettings::DEFAULT_PREVENT_SIMULTANEOUS_LOGINS = false

Definition at line 63 of file class.ilSecuritySettings.php.

const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS = 7
const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE = 6
const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH = 5
const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH = 4
const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH = 10
const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN1 = 11
const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2 = 8
const ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3 = 9

The documentation for this class was generated from the following file: