Class Ldap

Summary

Fully Qualified Name: Zend\Authentication\Adapter\Ldap
Extends: AbstractAdapter

Description

Methods

Name Description Defined By
__construct() Constructor Ldap
authenticate() Authenticate the user Ldap
getAccountObject() getAccountObject() - Returns the result entry as a stdClass object Ldap
getCredential() Returns the credential of the account being authenticated, or NULL if none is set. AbstractAdapter
getIdentity() Returns the identity of the account being authenticated, or NULL if none is set. AbstractAdapter
getLdap() Returns the LDAP Object Ldap
getOptions() Returns the array of arrays of Zend\Ldap\Ldap options of this adapter. Ldap
getPassword() Returns the password of the account being authenticated, or NULL if none is set. Ldap
getUsername() Returns the username of the account being authenticated, or NULL if none is set. Ldap
setCredential() Sets the credential for binding AbstractAdapter
setIdentity() Sets the identity for binding AbstractAdapter
setLdap() Set an Ldap connection Ldap
setOptions() Sets the array of arrays of Zend\Ldap\Ldap options to be used by this adapter. Ldap
setPassword() Sets the password for the account Ldap
setUsername() Sets the username for binding Ldap

Method Details

__construct()

Constructor

Parameter Name Type Description
$options array An
$identity string The
$credential string The

Returns:

authenticate()

Authenticate the user

Returns: \AuthenticationResult

getAccountObject()

getAccountObject() - Returns the result entry as a stdClass object

This resembles the feature {@see \Zend\Authentication\Adapter\DbTable::getResultRowObject()}. Closes ZF-6813

Parameter Name Type Description
$returnAttribs array
$omitAttribs array

Returns: \stdClass|bool

getCredential()

Returns the credential of the account being authenticated, or NULL if none is set.

Returns: mixed

getIdentity()

Returns the identity of the account being authenticated, or NULL if none is set.

Returns: mixed

getLdap()

Returns the LDAP Object

Returns: \ZendLdap\Ldap The Zend\Ldap\Ldap object used to authenticate the credentials

getOptions()

Returns the array of arrays of Zend\Ldap\Ldap options of this adapter.

Returns: array|null

getPassword()

Returns the password of the account being authenticated, or NULL if none is set.

Returns: string|null

getUsername()

Returns the username of the account being authenticated, or NULL if none is set.

Returns: string|null

setCredential()

Sets the credential for binding

Parameter Name Type Description
$credential mixed

Returns: self Provides a fluent interface

setIdentity()

Sets the identity for binding

Parameter Name Type Description
$identity mixed

Returns: self Provides a fluent interface

setLdap()

Set an Ldap connection

Parameter Name Type Description
$ldap \ZendLdap\Ldap An

Returns: self Provides a fluent interface

setOptions()

Sets the array of arrays of Zend\Ldap\Ldap options to be used by this adapter.

Parameter Name Type Description
$options array The

Returns: self Provides a fluent interface

setPassword()

Sets the password for the account

Parameter Name Type Description
$password string The

Returns: self Provides a fluent interface

setUsername()

Sets the username for binding

Parameter Name Type Description
$username string The

Returns: self Provides a fluent interface

Top