ILIAS
Release_3_10_x_branch Revision 61812
|
Overwritten Pear class AuthContainerLDAP This class is overwritten to support nested groups. More...
Public Member Functions | |
__construct (ilLDAPServer $server, $a_params) | |
Constructor. | |
fetchData ($username, $password, $isChallengeResponse=false) | |
Fetch data from storage container. | |
enableOptionalGroupCheck () | |
enable optional group check | |
enabledOptionalGroupCheck () | |
Check if optional group check is enabled. | |
checkGroup ($a_name) | |
check group overwritten base class | |
_debug ($a_message= '', $a_line=0) | |
Overwritten debug method Writes infos to log file. | |
setObserversEnabled ($boolean) | |
Enables/disables the observers of this container. | |
isObserversEnabled () | |
Returns true, if the observers of this container are enabled. | |
loginObserver ($a_username) | |
Called from fetchData after successful login. | |
failedLoginObserver () | |
Called from fetchData after failed login. |
Protected Member Functions | |
extractUserName ($a_user_data) | |
updateRequired ($a_username) | |
Check if an update is required. |
Private Member Functions | |
updateUserFilter () | |
Update user filter. | |
initLDAPAttributeToUser () | |
Init LDAP attribute mapping. |
Private Attributes | |
$optional_check = false | |
$log = null | |
$server = null | |
$ldap_attr_to_user = null | |
$isObserversEnabled |
Overwritten Pear class AuthContainerLDAP This class is overwritten to support nested groups.
Usage note: If you use an ilAuthContainerLDAP object as the container for an Auth object OTHER THAN ilAuthLDAP, you MUST call setEnableObservers(true) on the ilAuthContainerLDAP object. The observers are used to perform actions depending on the success or failure of a login attempt.
FIXME - Class ilAuthLDAP contains duplicates of the code of this class in the functions loginObserver, and failedLoginObserver. If you do changes in these functions, you MUST do corresponding changes in ilAuthLDAP as well. In a future revision of ILIAS, the class ilAuthLDAP should be removed.
Definition at line 49 of file class.ilAuthContainerLDAP.php.
ilAuthContainerLDAP::__construct | ( | ilLDAPServer | $server, |
$a_params | |||
) |
Constructor.
public
array | array of pear parameters |
Definition at line 73 of file class.ilAuthContainerLDAP.php.
ilAuthContainerLDAP::_debug | ( | $a_message = '' , |
|
$a_line = 0 |
|||
) |
Overwritten debug method Writes infos to log file.
public
string | message |
int | line |
Definition at line 174 of file class.ilAuthContainerLDAP.php.
ilAuthContainerLDAP::checkGroup | ( | $a_name | ) |
check group overwritten base class
public
string | user name (DN or external account name) |
Definition at line 136 of file class.ilAuthContainerLDAP.php.
References $optional_check.
ilAuthContainerLDAP::enabledOptionalGroupCheck | ( | ) |
Check if optional group check is enabled.
public
Definition at line 122 of file class.ilAuthContainerLDAP.php.
References $optional_check.
Referenced by failedLoginObserver().
ilAuthContainerLDAP::enableOptionalGroupCheck | ( | ) |
enable optional group check
public
Definition at line 110 of file class.ilAuthContainerLDAP.php.
References updateUserFilter().
Referenced by failedLoginObserver().
|
protected |
@return | string ldap username |
Definition at line 324 of file class.ilAuthContainerLDAP.php.
References ilObjUser\_checkExternalAuthAccount().
Referenced by loginObserver().
ilAuthContainerLDAP::failedLoginObserver | ( | ) |
Called from fetchData after failed login.
string | username |
Definition at line 303 of file class.ilAuthContainerLDAP.php.
References $ilLog, enabledOptionalGroupCheck(), and enableOptionalGroupCheck().
Referenced by fetchData().
ilAuthContainerLDAP::fetchData | ( | $username, | |
$password, | |||
$isChallengeResponse = false |
|||
) |
Fetch data from storage container.
public
Definition at line 87 of file class.ilAuthContainerLDAP.php.
References failedLoginObserver(), isObserversEnabled(), and loginObserver().
|
private |
Init LDAP attribute mapping.
private
Definition at line 292 of file class.ilAuthContainerLDAP.php.
Referenced by loginObserver().
ilAuthContainerLDAP::isObserversEnabled | ( | ) |
Returns true, if the observers of this container are enabled.
Definition at line 205 of file class.ilAuthContainerLDAP.php.
References $isObserversEnabled.
Referenced by fetchData(), and setObserversEnabled().
ilAuthContainerLDAP::loginObserver | ( | $a_username | ) |
Called from fetchData after successful login.
string | username |
Definition at line 215 of file class.ilAuthContainerLDAP.php.
References $_SESSION, $ilBench, $ilLog, ilObjUser\_checkExternalAuthAccount(), ilLDAPRoleAssignments\_getInstanceByServer(), AUTH_LDAP_NO_ILIAS_USER, extractUserName(), initLDAPAttributeToUser(), ilUtil\redirect(), and updateRequired().
Referenced by fetchData().
ilAuthContainerLDAP::setObserversEnabled | ( | $boolean | ) |
Enables/disables the observers of this container.
Definition at line 197 of file class.ilAuthContainerLDAP.php.
References isObserversEnabled().
Referenced by ilAuthUtils\_initAuth().
|
protected |
Check if an update is required.
string | $a_username |
Definition at line 352 of file class.ilAuthContainerLDAP.php.
References ilObjUser\_checkExternalAuthAccount(), and ilLDAPAttributeMapping\hasRulesForUpdate().
Referenced by loginObserver().
|
private |
Update user filter.
private
Definition at line 189 of file class.ilAuthContainerLDAP.php.
Referenced by enableOptionalGroupCheck().
|
private |
Definition at line 64 of file class.ilAuthContainerLDAP.php.
Referenced by isObserversEnabled().
|
private |
Definition at line 55 of file class.ilAuthContainerLDAP.php.
|
private |
Definition at line 53 of file class.ilAuthContainerLDAP.php.
|
private |
Definition at line 51 of file class.ilAuthContainerLDAP.php.
Referenced by checkGroup(), and enabledOptionalGroupCheck().
|
private |
Definition at line 54 of file class.ilAuthContainerLDAP.php.
Referenced by __construct().