Property | Type | Description | |
---|---|---|---|
$_capabilities | array | An array of capabilities, so that the driver can report which operations it supports and which it doesn't. | |
$_ldap | Horde_Ldap | LDAP object |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
addUser ( string $userId, array $credentials ) | Add a set of authentication credentials. | |
exists ( string $userId ) : boolean | Checks if $userId exists in the LDAP backend system. | |
listUsers ( boolean $sort = false ) : array | Lists all users in the system. | |
removeUser ( string $userId, string $dn = null ) | Remove a set of authentication credentials. | |
resetPassword ( string $userId ) : string | Reset a user's password. Used for example when the user does not remember the existing password. | |
updateUser ( string $oldID, string $newID, array $credentials, string $olddn = null, string $newdn = null ) | Update a set of authentication credentials. |
Method | Description | |
---|---|---|
_authenticate ( string $userId, array $credentials ) | Find out if the given set of login credentials are valid. | |
_lookupShadow ( string $dn ) : array | Checks for shadowLastChange and shadowMin/Max support and returns their values. We will also check for pwdLastSet if Active Directory is support is requested. For this check to succeed we need to be bound to the directory. |
public __construct ( array $params = [] ) | ||
$params | array | Required parameters:
'basedn' - (string) [REQUIRED] The base DN for the LDAP server. 'filter' - (string) The LDAP formatted search filter to search for users. This setting overrides the 'objectclass' parameter. 'ldap' - (Horde_Ldap) [REQUIRED] Horde LDAP object. 'objectclass - (string|array): The objectclass filter used to search for users. Either a single or an array of objectclasses. 'uid' - (string) [REQUIRED] The username search key. |
protected _authenticate ( string $userId, array $credentials ) | ||
$userId | string | The userId to check. |
$credentials | array | An array of login credentials. |
protected _lookupShadow ( string $dn ) : array | ||
$dn | string | The dn of the user. |
return | array | Array with keys being "shadowlastchange", "shadowmin" "shadowmax", "shadowwarning" and containing their respective values or false for no support. |
public removeUser ( string $userId, string $dn = null ) | ||
$userId | string | The userId to add. |
$dn | string | TODO |
public resetPassword ( string $userId ) : string | ||
$userId | string | The user id for which to reset the password. |
return | string | The new password on success. |
protected array $_capabilities | ||
return | array |