PHP Class Horde_Auth_Msad, horde

Author: Francois Helly ([email protected])
Inheritance: extends Horde_Auth_Ldap
ファイルを表示 Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__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.

Protected Methods

Method Description
_connect ( ) Does an ldap connect and binds as the guest user.
_findDN ( string $userId ) : string Find the user dn

Method Details

__construct() public method

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

_connect() protected method

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

_findDN() protected method

Find the user dn
protected _findDN ( string $userId ) : string
$userId string The user UID to find.
return string The user's full DN

addUser() public method

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() public method

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

resetPassword() public method

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.
return string The new password on success.

updateUser() public method

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.