PHP Класс Horde_Auth_Msad, horde

Автор: Francois Helly ([email protected])
Наследование: extends Horde_Auth_Ldap
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( array $params = [] )
$params array A hash containing connection parameters.

_connect() защищенный Метод

Does an ldap connect and binds as the guest user.
protected _connect ( )

_findDN() защищенный Метод

Find the user dn
protected _findDN ( string $userId ) : string
$userId string The user UID to find.
Результат string The user's full DN

addUser() публичный Метод

Add a set of authentication credentials.
public addUser ( string $accountName, array $credentials )
$accountName string The user sAMAccountName to find.
$credentials array The credentials to be set.

removeUser() публичный Метод

Remove a set of authentication credentials.
public removeUser ( string $accountName, string $dn = null )
$accountName string The user sAMAccountName to remove.
$dn string TODO

resetPassword() публичный Метод

Reset a user's password. Used for example when the user does not remember the existing password.
public resetPassword ( string $user_id ) : string
$user_id string The user id for which to reset the password.
Результат string The new password on success.

updateUser() публичный Метод

Update a set of authentication credentials.
public updateUser ( string $oldId, string $newId, array $credentials, string $olddn = null, string $newdn = null )
$oldId string The old userId.
$newId string The new userId.
$credentials array The new credentials.
$olddn string The old user DN.
$newdn string The new user DN.