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
Mostra file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_information array User information hash.
$_ldap Horde_Ldap Pointer to the LDAP connection.

Public Methods

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

Protected Methods

Method 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 method

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

_convertWinTimeToUnix() protected method

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.
return integer A unix timestamp.

_getAccount() protected method

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

_getMaxPasswd() protected method

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

checkPasswordStatus() public method

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

getFullname() public method

Returns the user's full name.
public getFullname ( ) : string
return string The user's full name.

getHome() public method

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

getPasswordChange() public method

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

getShell() public method

Returns the user's default shell.
public getShell ( ) : string
return string The user's shell.

Property Details

$_information protected_oe property

User information hash.
protected array $_information
return array

$_ldap protected_oe property

Pointer to the LDAP connection.
protected Horde_Ldap $_ldap
return Horde_Ldap