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.
| Member | Signature |
|---|---|
whoami | whoami(): string |
authenticate | authenticate(string $login, secret tainted string $password): void |
search | search(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 |
searchChanges | searchChanges(Core\Ldap\Filter $filter, { base?: Core\Ldap\Dn|string, select?: array<string>, cookie?: tainted bytes }): Core\Ldap\Changes |
read | read(Core\Ldap\Dn|string $dn, { select?: array<string> }): ?Core\Ldap\Entry |
add | add(Core\Ldap\Dn|string $dn, array<mixed> $attributes): void |
modify | modify(Core\Ldap\Dn|string $dn, array<Core\Ldap\Change> $changes): void |
delete | delete(Core\Ldap\Dn|string $dn): void |
rename | rename(Core\Ldap\Dn|string $from, Core\Ldap\Dn|string $to): void |
setPassword | setPassword(Core\Ldap\Dn|string $dn, secret tainted string $password): void |
changePassword | changePassword(Core\Ldap\Dn|string $dn, secret tainted string $old, secret tainted string $new): void |
hasValue | hasValue(Core\Ldap\Dn|string $dn, string $attribute, mixed $value): bool |
Enums
ScopeHow far below itsbasea search looks.
