Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
string $_authenticatedDn = 'null'
The DN of the authenticated account. Used to retrieve the account entry on request.
Zend_Ldap $_ldap = 'null'
The Zend_Ldap context.
array $_options = 'null'
The array of arrays of Zend_Ldap options passed to the constructor.
string $_password = 'null'
The password of the account being authenticated.
string $_username = 'null'
The username of the account being authenticated.
__construct(
array $options
=
array, string $username
=
null, string $password
=
null
)
:
void
Constructor
_checkGroupMembership(
Zend_Ldap $ldap, string $canonicalName, string $dn, array $adapterOptions
)
:
string|true
Checks the group membership of the bound user
_getAuthorityName(
)
:
string
Returns a domain name for the current LDAP options. This is used for skipping redundant operations (e.g. authentications).
_optionsToString(
array $options
)
:
string
Converts options to string
_prepareOptions(
Zend_Ldap $ldap, array $options
)
:
array
Sets the LDAP specific options on the Zend_Ldap instance
authenticate(
)
:
Zend_Auth_Result
Authenticate the user
getAccountObject(
array $returnAttribs
=
array, array $omitAttribs
=
array
)
:
stdClass|boolean
getAccountObject() - Returns the result entry as a stdClass object
This resembles the feature {@see Zend_Auth_Adapter_DbTable::getResultRowObject()}. Closes ZF-6813
getLdap(
)
:
Zend_Ldap
Returns the LDAP Object
getOptions(
)
:
array|null
Returns the array of arrays of Zend_Ldap options of this adapter.
getPassword(
)
:
string|null
Returns the password of the account being authenticated, or NULL if none is set.
getUsername(
)
:
string|null
Returns the username of the account being authenticated, or NULL if none is set.
setCredential(
string $credential
)
:
Zend_Auth_Adapter_Ldap
setCredential() - set the credential (password) value to be used
Proxies to {@see setPassword()}
Closes ZF-6813
setIdentity(
string $identity
)
:
Zend_Auth_Adapter_Ldap
setIdentity() - set the identity (username) to be used
Proxies to {@see setUsername()}
Closes ZF-6813
setLdap(
Zend_Ldap $ldap
)
:
Zend_Auth_Adapter_Ldap
Set an Ldap connection
setOptions(
array $options
)
:
Zend_Auth_Adapter_Ldap
Sets the array of arrays of Zend_Ldap options to be used by this adapter.
setPassword(
string $password
)
:
Zend_Auth_Adapter_Ldap
Sets the passwort for the account
setUsername(
string $username
)
:
Zend_Auth_Adapter_Ldap
Sets the username for binding