Метод | Описание | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
addUser ( string $accountName, array $credentials ) | Add a set of authentication credentials. | |
removeUser ( string $accountName, string $dn = null ) | Remove a set of authentication credentials. | |
resetPassword ( string $user_id ) : 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. |
Метод | Описание | |
---|---|---|
_connect ( ) | Does an ldap connect and binds as the guest user. | |
_findDN ( string $userId ) : string | Find the user dn |
public __construct ( array $params = [] ) | ||
$params | array | A hash containing connection parameters. |
protected _connect ( ) |
public removeUser ( string $accountName, string $dn = null ) | ||
$accountName | string | The user sAMAccountName to remove. |
$dn | string | TODO |
public resetPassword ( string $user_id ) : string | ||
$user_id | string | The user id for which to reset the password. |
Результат | string | The new password on success. |