interface LdapClientInterface implements LdapInterface

deprecated since version 3.1, to be removed in 4.0. Use the LdapInterface instead.

Ldap interface.

This interface is used for the BC layer with branch 2.8 and 3.0.

Methods

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 = 0)

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

array|null
find(string $dn, string $query, mixed $filter = '*')

Find a username into ldap connection.

Details

in LdapInterface at 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

in LdapInterface at line 47
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

in LdapInterface at line 52
EntryManagerInterface getEntryManager()

Return Value

EntryManagerInterface

in LdapInterface at line 63
string escape(string $subject, string $ignore = '', int $flags = 0)

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

Parameters

string $subject
string $ignore
int $flags

Return Value

string

at line 35
array|null find(string $dn, string $query, mixed $filter = '*')

Find a username into ldap connection.

Parameters

string $dn
string $query
mixed $filter

Return Value

array|null