ILIAS
eassessment Revision 61809
|
Overwritten Pear class AuthContainerLDAP This class is overwritten to support nested groups. More...
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().
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().
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().
ilAuthContainerLDAP::enableOptionalGroupCheck | ( | ) |
enable optional group check
public
Definition at line 78 of file class.ilAuthContainerLDAP.php.
References updateUserFilter().
Referenced by fetchData().
|
protected |
@return | string ldap username |
Definition at line 276 of file class.ilAuthContainerLDAP.php.
References $name, and ilObjUser\_checkExternalAuthAccount().
Referenced by loginObserver().
ilAuthContainerLDAP::failedLoginObserver | ( | $a_username, | |
$a_auth | |||
) |
Called from fetchData after failed login.
string | username |
object | PEAR auth object |
Reimplemented from ilAuthContainerBase.
Definition at line 266 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().
ilAuthContainerLDAP::forceCreation | ( | $a_status | ) |
Definition at line 66 of file class.ilAuthContainerLDAP.php.
|
private |
Init LDAP attribute mapping.
private
Definition at line 255 of file class.ilAuthContainerLDAP.php.
Referenced by loginObserver().
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 $_POST, $_SESSION, $force_creation, $ilBench, $ilLog, ilObjUser\_checkExternalAuthAccount(), AUTH_LDAP_NO_ILIAS_USER, extractUserName(), ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), initLDAPAttributeToUser(), ilUtil\redirect(), ilLDAPRoleAssignmentRules\ROLE_ACTION_ASSIGN, and updateRequired().
|
protected |
Check if an update is required.
string | $a_username |
Definition at line 304 of file class.ilAuthContainerLDAP.php.
References ilObjUser\_checkExternalAuthAccount(), ilLDAPRoleAssignmentRule\hasRulesForUpdate(), and ilLDAPAttributeMapping\hasRulesForUpdate().
Referenced by loginObserver().
|
private |
Update user filter.
private
Definition at line 168 of file class.ilAuthContainerLDAP.php.
Referenced by enableOptionalGroupCheck().
|
staticprivate |
Definition at line 38 of file class.ilAuthContainerLDAP.php.
Referenced by loginObserver().
|
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.