PHP Class Horde_Block_Account_Ldap, horde

Copyright 2001-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL-2). If you did not receive this file, see http://www.horde.org/licenses/lgpl.
Author: Eric Jon Rostetter ([email protected])
Author: Jan Schneider ([email protected])
Inheritance: extends Horde_Block_Account_Base
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_information array User information hash.
$_ldap Horde_Ldap Pointer to the LDAP connection.

Méthodes publiques

Méthode Description
__construct ( array $params = [] ) Constructor.
checkPasswordStatus ( ) : string Returns the status of the current password.
getFullname ( ) : string Returns the user's full name.
getHome ( ) : string Returns the user's home (login) directory.
getPasswordChange ( ) : string Returns the date of the user's last password change.
getShell ( ) : string Returns the user's default shell.

Méthodes protégées

Méthode Description
_convertWinTimeToUnix ( integer $dateLargeInt ) : integer Code from 'brudinie at yahoo dot co dot uk' at http://nl3.php.net/ldap/
_getAccount ( ) : Horde_Ldap_Entry Returns the user account from the LDAP source.
_getMaxPasswd ( ) : integer | boolean Returns the win32 AD epoch number of days the password may be unchanged.

Method Details

__construct() public méthode

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

_convertWinTimeToUnix() protected méthode

Code from 'brudinie at yahoo dot co dot uk' at http://nl3.php.net/ldap/
protected _convertWinTimeToUnix ( integer $dateLargeInt ) : integer
$dateLargeInt integer The win32 active directory epoch time.
Résultat integer A unix timestamp.

_getAccount() protected méthode

Returns the user account from the LDAP source.
protected _getAccount ( ) : Horde_Ldap_Entry
Résultat Horde_Ldap_Entry An entry with complete account details.

_getMaxPasswd() protected méthode

Returns the win32 AD epoch number of days the password may be unchanged.
protected _getMaxPasswd ( ) : integer | boolean
Résultat integer | boolean Number of days or false if no limit.

checkPasswordStatus() public méthode

Returns the status of the current password.
public checkPasswordStatus ( ) : string
Résultat string A string with a warning message if the password is about to expire.

getFullname() public méthode

Returns the user's full name.
public getFullname ( ) : string
Résultat string The user's full name.

getHome() public méthode

Returns the user's home (login) directory.
public getHome ( ) : string
Résultat string The user's directory.

getPasswordChange() public méthode

Returns the date of the user's last password change.
public getPasswordChange ( ) : string
Résultat string Date string.

getShell() public méthode

Returns the user's default shell.
public getShell ( ) : string
Résultat string The user's shell.

Property Details

$_information protected_oe property

User information hash.
protected array $_information
Résultat array

$_ldap protected_oe property

Pointer to the LDAP connection.
protected Horde_Ldap $_ldap
Résultat Horde_Ldap