class Ldap implements LdapInterface

Methods

__construct(AdapterInterface $adapter)

No description

bind(string $dn = null, string $password = null)

Return a connection bound to the ldap.

query(string $dn, string $query, array $options = array())

Queries a ldap server for entries matching the given criteria.

string
escape(string $subject, string $ignore = '', int $flags)

Escape a string for use in an LDAP filter or DN.

static Ldap
create(string $adapter, array $config = array())

Creates a new Ldap instance.

Details

at line line 28
__construct(AdapterInterface $adapter)

Parameters

AdapterInterface $adapter

at line line 36
bind(string $dn = null, string $password = null)

Return a connection bound to the ldap.

Parameters

string $dn A LDAP dn
string $password A password

Exceptions

ConnectionException If dn / password could not be bound.

at line line 44
QueryInterface query(string $dn, string $query, array $options = array())

Queries a ldap server for entries matching the given criteria.

Parameters

string $dn
string $query
array $options

Return Value

QueryInterface

at line line 52
EntryManagerInterface getEntryManager()

Return Value

EntryManagerInterface

at line line 60
string escape(string $subject, string $ignore = '', int $flags)

Escape a string for use in an LDAP filter or DN.

Parameters

string $subject
string $ignore
int $flags

Return Value

string

at line line 73
static Ldap create(string $adapter, array $config = array())

Creates a new Ldap instance.

Parameters

string $adapter The adapter name
array $config The adapter's configuration

Return Value

Ldap