|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
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 ($a_server_id=null) | |
| Constructor. More... | |
| forceCreation ($a_status) | |
| enableOptionalGroupCheck () | |
| enable optional group check More... | |
| enabledOptionalGroupCheck () | |
| Check if optional group check is enabled. More... | |
| fetchData ($username, $password) | |
| Overwritten from base class. More... | |
| checkGroup ($a_name) | |
| check group overwritten base class More... | |
| loginObserver ($a_username, $a_auth) | |
| Called from fetchData after successful login. More... | |
| failedLoginObserver ($a_username, $a_auth) | |
| Called from fetchData after failed login. More... | |
| supportsCaptchaVerification () | |
Public Member Functions inherited from Auth_Container_LDAP | |
| Auth_Container_LDAP ($params) | |
| Constructor of the container class. More... | |
| _prepare () | |
| Prepare LDAP connection. More... | |
| _connect () | |
| Connect to the LDAP server using the global options. More... | |
| _disconnect () | |
| Disconnects (unbinds) from ldap server. More... | |
| _getBaseDN () | |
| Tries to find Basedn via namingContext Attribute. More... | |
| _isValidLink () | |
| determines whether there is a valid ldap conenction or not More... | |
| _setDefaults () | |
| Set some default options. More... | |
| _parseOptions ($array) | |
| Parse options passed to the container class. More... | |
| _setV12OptionsToV13 ($array) | |
| Adapt deprecated options from Auth 1.2 LDAP to Auth 1.3 LDAP. More... | |
| _scope2function ($scope) | |
| Get search function for scope. More... | |
| fetchData ($username, $password) | |
| Fetch data from LDAP server. More... | |
| checkGroup ($user) | |
| Validate group membership. More... | |
| _quoteFilterString ($filter_str) | |
| Escapes LDAP filter special characters as defined in RFC 2254. More... | |
Public Member Functions inherited from Auth_Container | |
| Auth_Container () | |
| Constructor. More... | |
| fetchData ($username, $password, $isChallengeResponse=false) | |
| Fetch data from storage container. More... | |
| verifyPassword ($password1, $password2, $cryptType="md5") | |
| Crypt and verfiy the entered password. More... | |
| supportsChallengeResponse () | |
| Returns true if the container supports Challenge Response password authentication. More... | |
| getCryptType () | |
| Returns the crypt current crypt type of the container. More... | |
| listUsers () | |
| List all users that are available from the storage container. More... | |
| getUser ($username) | |
| Returns a user assoc array. More... | |
| addUser ($username, $password, $additional=null) | |
| Add a new user to the storage container. More... | |
| removeUser ($username) | |
| Remove user from the storage container. More... | |
| changePassword ($username, $password) | |
| Change password for user in the storage container. More... | |
| log ($message, $level=AUTH_LOG_DEBUG) | |
| Log a message to the Auth log. More... | |
Public Member Functions inherited from ilAuthContainerBase | |
| loginObserver ($a_username, $a_auth) | |
| Called after successful login. More... | |
| failedLoginObserver ($a_username, $a_auth) | |
| Called after failed login. More... | |
| checkAuthObserver ($a_username, $a_auth) | |
| Called after check auth requests. More... | |
| logoutObserver ($a_username, $a_auth) | |
| Called after logout. More... | |
| supportsCaptchaVerification () | |
| Returns whether or not the auth container supports the verification of captchas This should be true for those auth methods, which are available in the default login form. More... | |
Protected Member Functions | |
| extractUserName ($a_user_data) | |
| updateRequired ($a_username) | |
| Check if an update is required. More... | |
Private Member Functions | |
| updateUserFilter () | |
| Update user filter. More... | |
| initLDAPAttributeToUser () | |
| Init LDAP attribute mapping. More... | |
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 | |
Data Fields inherited from Auth_Container | |
| $activeUser = "" | |
| User that is currently selected from the storage container. More... | |
| $_auth_obj = null | |
| The Auth object this container is attached to. More... | |
Overwritten Pear class AuthContainerLDAP This class is overwritten to support nested groups.
Definition at line 36 of file class.ilAuthContainerLDAP.php.
| ilAuthContainerLDAP::__construct | ( | $a_server_id = null | ) |
Constructor.
@access public
| int | ldap server id |
Definition at line 54 of file class.ilAuthContainerLDAP.php.
References $ilLog, ilLDAPServer\_getFirstActiveServer(), ilLDAPServer\getInstanceByServerId(), ilLoggerFactory\getLogger(), and Auth_Container\log().
Here is the call graph for this function:| ilAuthContainerLDAP::checkGroup | ( | $a_name | ) |
check group overwritten base class
@access public
| string | user name (DN or external account name) |
Reimplemented from Auth_Container_LDAP.
Definition at line 146 of file class.ilAuthContainerLDAP.php.
References Auth_Container\log().
Here is the call graph for this function:| ilAuthContainerLDAP::enabledOptionalGroupCheck | ( | ) |
Check if optional group check is enabled.
@access public
Definition at line 98 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
@access public
Definition at line 86 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 258 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 248 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 109 of file class.ilAuthContainerLDAP.php.
References $res, enabledOptionalGroupCheck(), enableOptionalGroupCheck(), PEAR\isError(), and Auth_Container\log().
Here is the call graph for this function:| ilAuthContainerLDAP::forceCreation | ( | $a_status | ) |
Definition at line 74 of file class.ilAuthContainerLDAP.php.
|
private |
Init LDAP attribute mapping.
@access private
Definition at line 237 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 192 of file class.ilAuthContainerLDAP.php.
References $ilLog, AUTH_LDAP_NO_ILIAS_USER, AUTH_WRONG_LOGIN, extractUserName(), Auth_Container\log(), and ilUtil\redirect().
Here is the call graph for this function:| ilAuthContainerLDAP::supportsCaptchaVerification | ( | ) |
Reimplemented from ilAuthContainerBase.
Definition at line 312 of file class.ilAuthContainerLDAP.php.
|
protected |
Check if an update is required.
| string | $a_username |
Definition at line 286 of file class.ilAuthContainerLDAP.php.
References ilObjUser\_checkExternalAuthAccount(), ilLDAPAttributeMapping\hasRulesForUpdate(), and ilLDAPRoleAssignmentRule\hasRulesForUpdate().
Here is the call graph for this function:
|
private |
Update user filter.
@access private
Definition at line 182 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 enabledOptionalGroupCheck().
|
private |
Definition at line 43 of file class.ilAuthContainerLDAP.php.