Ldaph
class Ldaph (View source)
ldaph: poor man's php ldap class
Methods
__construct(string $server, int $port = 389)
Constructor method
searchbase(string $s)
Set ldap search base
bool
auth(string $userName, string $userPass)
Authenticate an user via LDAP
array
search(string $what = "*", bool $clean = false)
Search ldap directory for $what
Details
at line 127
__construct(string $server, int $port = 389)
Constructor method
Prepare environment for connection (bind)
at line 178
final Ldaph
dn(string $dn)
Set ldap distinguished name (used in ldap bind)
Before bind, special word USERNAME will be substituted by real username
at line 310
final Ldaph
searchbase(string $s)
Set ldap search base
During search, special word PATTERN will be sbstituted by provided pattern
at line 352
bool
auth(string $userName, string $userPass)
Authenticate an user via LDAP
at line 391
array
search(string $what = "*", bool $clean = false)
Search ldap directory for $what