class LdapClient implements LdapClientInterface

Methods

__construct(string $host = null, int $port = 389, int $version = 3, bool $useSsl = false, bool $useStartTls = false, bool $optReferrals = false)

No description

__destruct()

No description

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

Return a connection bound to the ldap.

find($dn, $query, $filter = '*')

No description

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

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

Details

at line line 42
__construct(string $host = null, int $port = 389, int $version = 3, bool $useSsl = false, bool $useStartTls = false, bool $optReferrals = false)

Parameters

string $host
int $port
int $version
bool $useSsl
bool $useStartTls
bool $optReferrals

at line line 56
__destruct()

at line line 64
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 78
find($dn, $query, $filter = '*')

Parameters

$dn
$query
$filter

at line line 106
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