interface LdapInterface

Ldap interface.

Constants

ESCAPE_FILTER

ESCAPE_DN

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.

Details

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

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

EntryManagerInterface getEntryManager()

Return Value

EntryManagerInterface

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