Zend Framework
1.12
|
Public Member Functions | |
__construct (array $options=array(), $username=null, $password=null) | |
Constructor. | |
getOptions () | |
Returns the array of arrays of Zend_Ldap options of this adapter. | |
setOptions ($options) | |
Sets the array of arrays of Zend_Ldap options to be used by this adapter. | |
getUsername () | |
Returns the username of the account being authenticated, or NULL if none is set. | |
setUsername ($username) | |
Sets the username for binding. | |
getPassword () | |
Returns the password of the account being authenticated, or NULL if none is set. | |
setPassword ($password) | |
Sets the passwort for the account. | |
setIdentity ($identity) | |
setIdentity() - set the identity (username) to be used | |
setCredential ($credential) | |
setCredential() - set the credential (password) value to be used | |
getLdap () | |
Returns the LDAP Object. | |
setLdap (Zend_Ldap $ldap) | |
Set an Ldap connection. | |
authenticate () | |
Authenticate the user. | |
getAccountObject (array $returnAttribs=array(), array $omitAttribs=array()) | |
getAccountObject() - Returns the result entry as a stdClass object | |
Protected Member Functions | |
_getAuthorityName () | |
Returns a domain name for the current LDAP options. | |
_prepareOptions (Zend_Ldap $ldap, array $options) | |
Sets the LDAP specific options on the Zend_Ldap instance. | |
_checkGroupMembership (Zend_Ldap $ldap, $canonicalName, $dn, array $adapterOptions) | |
Checks the group membership of the bound user. | |
Protected Attributes | |
$_ldap = null | |
$_options = null | |
$_username = null | |
$_password = null | |
$_authenticatedDn = null | |
__construct | ( | array | $options = array() , |
$username = null , |
|||
$password = null |
|||
) |
Constructor.
array | $options | An array of arrays of Zend_Ldap options |
string | $username | The username of the account being authenticated |
string | $password | The password of the account being authenticated |
|
protected |
Checks the group membership of the bound user.
Zend_Ldap | $ldap | |
string | $canonicalName | |
string | $dn | |
array | $adapterOptions |
|
protected |
Returns a domain name for the current LDAP options.
This is used for skipping redundant operations (e.g. authentications).
|
protected |
authenticate | ( | ) |
Authenticate the user.
Zend_Auth_Adapter_Exception |
Implements Zend_Auth_Adapter_Interface.
getAccountObject | ( | array | $returnAttribs = array() , |
array | $omitAttribs = array() |
||
) |
getAccountObject() - Returns the result entry as a stdClass object
This resembles the feature {
array | $returnAttribs | |
array | $omitAttribs |
getLdap | ( | ) |
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 | ( | $credential | ) |
setCredential() - set the credential (password) value to be used
Proxies to {
Closes ZF-6813
string | $credential |
setIdentity | ( | $identity | ) |
setIdentity() - set the identity (username) to be used
Proxies to {
Closes ZF-6813
string | $identity |
setLdap | ( | Zend_Ldap | $ldap | ) |
Set an Ldap connection.
Zend_Ldap | $ldap | An existing Ldap object |
setOptions | ( | $options | ) |
Sets the array of arrays of Zend_Ldap options to be used by this adapter.
array | $options | The array of arrays of Zend_Ldap options |
setPassword | ( | $password | ) |
Sets the passwort for the account.
string | $password | The password of the account being authenticated |
setUsername | ( | $username | ) |
Sets the username for binding.
string | $username | The username for binding |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |