Skip to content

Core\Ldap\Connection

An open connection to one LDAP directory. The connection is closed when the request ends.

Returned by

You get a Core\Ldap\Connection from these methods:

Members

12 members.

MemberSignature
whoamiwhoami(): string
authenticateauthenticate(string $login, secret tainted string $password): void
searchsearch(Core\Ldap\Filter $filter, { base?: Core\Ldap\Dn|string, scope?: Core\Ldap\Connection::Scope, select?: array<string>, pageSize?: int, sizeLimit?: int, sort?: string, descending?: bool, offset?: int, window?: int, showDeleted?: bool }): Core\Ldap\Entries
searchChangessearchChanges(Core\Ldap\Filter $filter, { base?: Core\Ldap\Dn|string, select?: array<string>, cookie?: tainted bytes }): Core\Ldap\Changes
readread(Core\Ldap\Dn|string $dn, { select?: array<string> }): ?Core\Ldap\Entry
addadd(Core\Ldap\Dn|string $dn, array<mixed> $attributes): void
modifymodify(Core\Ldap\Dn|string $dn, array<Core\Ldap\Change> $changes): void
deletedelete(Core\Ldap\Dn|string $dn): void
renamerename(Core\Ldap\Dn|string $from, Core\Ldap\Dn|string $to): void
setPasswordsetPassword(Core\Ldap\Dn|string $dn, secret tainted string $password): void
changePasswordchangePassword(Core\Ldap\Dn|string $dn, secret tainted string $old, secret tainted string $new): void
hasValuehasValue(Core\Ldap\Dn|string $dn, string $attribute, mixed $value): bool

Enums

  • ScopeHow far below its base a search looks.