|
ILIAS
Release_4_2_x_branch Revision 61807
|
Overwritten Pear class AuthContainerLDAP This class is overwritten to support nested groups. More...
Inheritance diagram for ilAuthContainerLDAP:
Collaboration diagram for ilAuthContainerLDAP:Public Member Functions | |
| __construct () | |
| Constructor. | |
| forceCreation ($a_status) | |
| enableOptionalGroupCheck () | |
| enable optional group check | |
| enabledOptionalGroupCheck () | |
| Check if optional group check is enabled. | |
| fetchData ($username, $password) | |
| Overwritten from base class. | |
| checkGroup ($a_name) | |
| check group overwritten base class | |
| loginObserver ($a_username, $a_auth) | |
| Called from fetchData after successful login. | |
| failedLoginObserver ($a_username, $a_auth) | |
| Called from fetchData after failed login. | |
Public Member Functions inherited from Auth_Container_LDAP | |
| Auth_Container_LDAP ($params) | |
| Constructor of the container class. | |
| _prepare () | |
| Prepare LDAP connection. | |
| _connect () | |
| Connect to the LDAP server using the global options. | |
| _disconnect () | |
| Disconnects (unbinds) from ldap server. | |
| _getBaseDN () | |
| Tries to find Basedn via namingContext Attribute. | |
| _isValidLink () | |
| determines whether there is a valid ldap conenction or not | |
| _setDefaults () | |
| Set some default options. | |
| _parseOptions ($array) | |
| Parse options passed to the container class. | |
| _setV12OptionsToV13 ($array) | |
| Adapt deprecated options from Auth 1.2 LDAP to Auth 1.3 LDAP. | |
| _scope2function ($scope) | |
| Get search function for scope. | |
| _quoteFilterString ($filter_str) | |
| Escapes LDAP filter special characters as defined in RFC 2254. | |
Public Member Functions inherited from Auth_Container | |
| Auth_Container () | |
| Constructor. | |
| fetchData ($username, $password, $isChallengeResponse=false) | |
| Fetch data from storage container. | |
| verifyPassword ($password1, $password2, $cryptType="md5") | |
| Crypt and verfiy the entered password. | |
| supportsChallengeResponse () | |
| Returns true if the container supports Challenge Response password authentication. | |
| getCryptType () | |
| Returns the crypt current crypt type of the container. | |
| listUsers () | |
| List all users that are available from the storage container. | |
| getUser ($username) | |
| Returns a user assoc array. | |
| addUser ($username, $password, $additional=null) | |
| Add a new user to the storage container. | |
| removeUser ($username) | |
| Remove user from the storage container. | |
| changePassword ($username, $password) | |
| Change password for user in the storage container. | |
| log ($message, $level=AUTH_LOG_DEBUG) | |
| Log a message to the Auth log. | |
Public Member Functions inherited from ilAuthContainerBase | |
| checkAuthObserver ($a_username, $a_auth) | |
| Called after check auth requests. | |
| logoutObserver ($a_username, $a_auth) | |
| Called after logout. | |
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 | |
Static Private Attributes | |
| static | $force_creation = false |
Additional Inherited Members | |
Data Fields inherited from Auth_Container_LDAP | |
| $options = array() | |
| $conn_id = false | |
Overwritten Pear class AuthContainerLDAP This class is overwritten to support nested groups.
Definition at line 36 of file class.ilAuthContainerLDAP.php.
| ilAuthContainerLDAP::__construct | ( | ) |
Constructor.
public
| array | array of pear parameters |
Definition at line 54 of file class.ilAuthContainerLDAP.php.
References $ilLog, ilLDAPServer\_getFirstActiveServer(), and Auth_Container\log().
Here is the call graph for this function:| ilAuthContainerLDAP::checkGroup | ( | $a_name | ) |
check group overwritten base class
public
| string | user name (DN or external account name) |
Reimplemented from Auth_Container_LDAP.
Definition at line 132 of file class.ilAuthContainerLDAP.php.
References $optional_check, and Auth_Container\log().
Here is the call graph for this function:| ilAuthContainerLDAP::enabledOptionalGroupCheck | ( | ) |
Check if optional group check is enabled.
public
Definition at line 90 of file class.ilAuthContainerLDAP.php.
References $optional_check.
Referenced by fetchData().
Here is the caller graph for this function:| ilAuthContainerLDAP::enableOptionalGroupCheck | ( | ) |
enable optional group check
public
Definition at line 78 of file class.ilAuthContainerLDAP.php.
References updateUserFilter().
Referenced by fetchData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| @return | string ldap username |
Definition at line 244 of file class.ilAuthContainerLDAP.php.
References ilObjUser\_checkExternalAuthAccount().
Referenced by loginObserver().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthContainerLDAP::failedLoginObserver | ( | $a_username, | |
| $a_auth | |||
| ) |
Called from fetchData after failed login.
| string | username |
| object | PEAR auth object |
Reimplemented from ilAuthContainerBase.
Definition at line 234 of file class.ilAuthContainerLDAP.php.
| ilAuthContainerLDAP::fetchData | ( | $username, | |
| $password | |||
| ) |
Overwritten from base class.
| object | $username | |
| object | $password |
Reimplemented from Auth_Container_LDAP.
Definition at line 101 of file class.ilAuthContainerLDAP.php.
References $res, AUTH_LOG_DEBUG, enabledOptionalGroupCheck(), enableOptionalGroupCheck(), PEAR\isError(), and Auth_Container\log().
Here is the call graph for this function:| ilAuthContainerLDAP::forceCreation | ( | $a_status | ) |
Definition at line 66 of file class.ilAuthContainerLDAP.php.
|
private |
Init LDAP attribute mapping.
private
Definition at line 223 of file class.ilAuthContainerLDAP.php.
| ilAuthContainerLDAP::loginObserver | ( | $a_username, | |
| $a_auth | |||
| ) |
Called from fetchData after successful login.
| string | username |
Reimplemented from ilAuthContainerBase.
Definition at line 178 of file class.ilAuthContainerLDAP.php.
References $GLOBALS, $ilLog, AUTH_LDAP_NO_ILIAS_USER, AUTH_WRONG_LOGIN, extractUserName(), ilUtil\redirect(), and ilLDAPUserSynchronisation\setExternalAccount().
Here is the call graph for this function:
|
protected |
Check if an update is required.
| string | $a_username |
Definition at line 272 of file class.ilAuthContainerLDAP.php.
References ilObjUser\_checkExternalAuthAccount(), ilLDAPRoleAssignmentRule\hasRulesForUpdate(), and ilLDAPAttributeMapping\hasRulesForUpdate().
Here is the call graph for this function:
|
private |
Update user filter.
private
Definition at line 168 of file class.ilAuthContainerLDAP.php.
Referenced by enableOptionalGroupCheck().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 38 of file class.ilAuthContainerLDAP.php.
|
private |
Definition at line 44 of file class.ilAuthContainerLDAP.php.
|
private |
Definition at line 42 of file class.ilAuthContainerLDAP.php.
|
private |
Definition at line 40 of file class.ilAuthContainerLDAP.php.
Referenced by checkGroup(), and enabledOptionalGroupCheck().
|
private |
Definition at line 43 of file class.ilAuthContainerLDAP.php.