| Category | Zend |
| Package | Zend_Auth |
| Subpackage | Zend_Auth_Adapter |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |

class Zend_Auth_Adapter_Ldap implements Zend_Auth_Adapter_Interface
| Category | Zend |
| Package | Zend_Auth |
| Subpackage | Zend_Auth_Adapter |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |
| # $_authenticatedDn | The DN of the authenticated account |
| # $_ldap | The Zend_Ldap context |
| # $_options | The array of arrays of Zend_Ldap options passed to the constructor |
| # $_password | The password of the account being authenticated |
| # $_username | The username of the account being authenticated |
| + __construct() | Constructor |
| # _checkGroupMembership() | Checks the group membership of the bound user |
| # _getAuthorityName() | Returns a domain name for the current LDAP options |
| - _optionsToString() | Converts options to string |
| # _prepareOptions() | Sets the LDAP specific options on the Zend_Ldap instance |
| + authenticate() | Authenticate the user |
| + getAccountObject() | getAccountObject() - Returns the result entry as a stdClass object |
| + getLdap() | Returns the LDAP Object |
| + getOptions() | Returns the array of arrays of Zend_Ldap options of this adapter |
| + getPassword() | Returns the password of the account being authenticated, or |
| + getUsername() | Returns the username of the account being authenticated, or |
| + setCredential() | setCredential() - set the credential (password) value to be used |
| + setIdentity() | setIdentity() - set the identity (username) to be used |
| + setLdap() | Set an Ldap connection |
| + setOptions() | Sets the array of arrays of Zend_Ldap options to be used by |
| + setPassword() | Sets the passwort for the account |
| + setUsername() | Sets the username for binding |
protected $_authenticatedDn = nullprotected $_ldap = nullprotected $_options = nullZend_Ldap options passed to the constructor.protected $_password = nullprotected $_username = null
public function __construct( |
array $options = array())
|
array $options |
|
string $username |
The username of the account being authenticated |
string $password |
The password of the account being authenticated |
protected function _checkGroupMembership( |
)
|
|
|
string $canonicalName |
|
string $dn |
|
array $adapterOptions |
protected function _getAuthorityName( |
)
|
private function _optionsToString( |
array $options)
|
array $options |
protected function _prepareOptions( |
)
|
Zend_Ldap instance |
|
array $options |
public function authenticate( |
)
|
public function getAccountObject( |
array $returnAttribs = array())
|
Zend_Auth_Adapter_DbTable::getResultRowObject()}.array $returnAttribs |
public function getLdap( |
)
|
public function getOptions( |
)
|
Zend_Ldap options of this adapter.
public function getPassword( |
)
|
public function getUsername( |
)
|
public function setCredential( |
$credential)
|
string $credential |
Zend_Auth_Adapter_Ldap Provides a fluent interface
public function setIdentity( |
$identity)
|
string $identity |
Zend_Auth_Adapter_Ldap Provides a fluent interface
public function setLdap( |
)
|
|
Zend_Auth_Adapter_Ldap Provides a fluent interface
public function setOptions( |
$options)
|
Zend_Ldap options to be used byarray $options |
The array of arrays of Zend_Ldap options |
Zend_Auth_Adapter_Ldap Provides a fluent interface
public function setPassword( |
$password)
|
string $password |
The password of the account being authenticated |
Zend_Auth_Adapter_Ldap Provides a fluent interface
public function setUsername( |
$username)
|
string $username |
The username for binding |
Zend_Auth_Adapter_Ldap Provides a fluent interface