LdapClientInterface deprecated

interface LdapClientInterface implements LdapInterface

deprecated

You should use 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.

from LdapInterface
QueryInterface query(string $dn, string $query, array $options = array())

Queries a ldap server for entries matching the given criteria.

from LdapInterface
EntryManagerInterface getEntryManager() from LdapInterface
string escape(string $subject, string $ignore = '', int $flags)

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

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

Find a username into ldap connection.

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)

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

Parameters

string $subject
string $ignore
int $flags

Return Value

string

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
doc_Symfony
2016-10-28 06:22:28
Comments
Leave a Comment

Please login to continue.