Auth/Adapter/Ldap.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Auth
- Subpackage
- Zend_Auth_Adapter
- Version
- $Id$
\Zend_Auth_Adapter_Ldap
Package: Zend_Auth\Zend_Auth_Adapter- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties



string $_authenticatedDn = nullThe DN of the authenticated account. Used to retrieve the account entry on request.
Default valuenullDetails- Type
- string



array $_options = nullThe array of arrays of Zend_Ldap options passed to the constructor.
Default valuenullDetails- Type
- array



string $_password = nullThe password of the account being authenticated.
Default valuenullDetails- Type
- string



string $_username = nullThe username of the account being authenticated.
Default valuenullDetails- Type
- string
Methods



__construct(array $options = array(), string $username = null, string $password = null) : voidParameters| Name | Type | Description |
|---|
| $options | array | An array of arrays of Zend_Ldap options |
|---|
| $username | string | The username of the account being authenticated |
|---|
| $password | string | The password of the account being authenticated |
|---|



_checkGroupMembership(\Zend_Ldap $ldap, string $canonicalName, string $dn, array $adapterOptions) : string | trueChecks the group membership of the bound user
Parameters| Name | Type | Description |
|---|
| $ldap | \Zend_Ldap | |
|---|
| $canonicalName | string | |
|---|
| $dn | string | |
|---|
| $adapterOptions | array | |
|---|
Returns| Type | Description |
|---|
| string | true | |



_optionsToString(array $options) : stringConverts options to string
Parameters| Name | Type | Description |
|---|
| $options | array | |
|---|
Returns 


_prepareOptions(\Zend_Ldap $ldap, array $options) : arraySets the LDAP specific options on the Zend_Ldap instance
ParametersReturns| Type | Description |
|---|
| array | of auth-adapter specific options |



getAccountObject(array $returnAttribs = array(), array $omitAttribs = array()) : \stdClass | booleangetAccountObject() - Returns the result entry as a stdClass object
This resembles the feature {@see Zend_Auth_Adapter_DbTable::getResultRowObject()}.
Closes ZF-6813
Parameters| Name | Type | Description |
|---|
| $returnAttribs | array | |
|---|
| $omitAttribs | array | |
|---|
Returns


getOptions() : array | nullReturns the array of arrays of Zend_Ldap options of this adapter.
Returns| Type | Description |
|---|
| array | null | |



getPassword() : string | nullReturns the password of the account being authenticated, or
NULL if none is set.
Returns| Type | Description |
|---|
| string | null | |



getUsername() : string | nullReturns the username of the account being authenticated, or
NULL if none is set.
Returns| Type | Description |
|---|
| string | null | |



setCredential(string $credential) : \Zend_Auth_Adapter_LdapsetCredential() - set the credential (password) value to be used
Proxies to {@see setPassword()}
Closes ZF-6813
Parameters| Name | Type | Description |
|---|
| $credential | string | |
|---|
Returns


setIdentity(string $identity) : \Zend_Auth_Adapter_LdapsetIdentity() - set the identity (username) to be used
Proxies to {@see setUsername()}
Closes ZF-6813
Parameters| Name | Type | Description |
|---|
| $identity | string | |
|---|
Returns


setOptions(array $options) : \Zend_Auth_Adapter_LdapSets the array of arrays of Zend_Ldap options to be used by
this adapter.
Parameters| Name | Type | Description |
|---|
| $options | array | The array of arrays of Zend_Ldap options |
|---|
Returns 


setPassword(string $password) : \Zend_Auth_Adapter_LdapSets the passwort for the account
Parameters| Name | Type | Description |
|---|
| $password | string | The password of the account being authenticated |
|---|
Returns 


setUsername(string $username) : \Zend_Auth_Adapter_LdapSets the username for binding
Parameters| Name | Type | Description |
|---|
| $username | string | The username for binding |
|---|
Returns