\Zend_Auth_Adapter_Ldap
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Auth_Adapter_Ldap
implements
Zend_Auth_Adapter_Interface
{
- // members
- protected Zend_Ldap $_ldap = NULL;
- protected $_options = NULL;
- protected $_username = NULL;
- protected $_password = NULL;
- protected $_authenticatedDn = NULL;
- // methods
- public void __construct()
- public array|null getOptions()
- public Zend_Auth_Adapter_Ldap setOptions()
- public string|null getUsername()
- public Zend_Auth_Adapter_Ldap setUsername()
- public string|null getPassword()
- public Zend_Auth_Adapter_Ldap setPassword()
- public Zend_Auth_Adapter_Ldap setIdentity()
- public Zend_Auth_Adapter_Ldap setCredential()
- public Zend_Ldap getLdap()
- public Zend_Auth_Adapter_Ldap setLdap()
- protected string _getAuthorityName()
- public Zend_Auth_Result authenticate()
- protected array _prepareOptions()
- protected string|true _checkGroupMembership()
- public stdClass|boolean getAccountObject()
- private string _optionsToString()
Hierarchy
Implements
Members
protected
- $_authenticatedDn
—
string
The DN of the authenticated account. Used to retrieve the account entry on request. - $_ldap
—
Zend_Ldap
The Zend_Ldap context. - $_options
—
array
The array of arrays of Zend_Ldap options passed to the constructor. - $_password
—
string
The password of the account being authenticated. - $_username
—
string
The username of the account being authenticated.
Methods
private
- _optionsToString() — Converts options to string
protected
- _checkGroupMembership() — Checks the group membership of the bound user
- _getAuthorityName() — Returns a domain name for the current LDAP options. This is used for skipping redundant operations (e.g. authentications).
- _prepareOptions() — Sets the LDAP specific options on the Zend_Ldap instance
public
- __construct() — Constructor
- 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 NULL if none is set.
- getUsername() — Returns the username of the account being authenticated, or NULL if none is set.
- 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 this adapter.
- setPassword() — Sets the passwort for the account
- setUsername() — Sets the username for binding