All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m41s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m15s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m17s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m48s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m59s
- Gemeinsamer Treiber-Unterbau (App\Identity\IdentityDriver, IdentityDrivers, IdentityLogin, AttributeProfile); Entra ID nutzt ihn ebenfalls - Plugins oidc, ldap und saml mit Profil- und Gruppen-Zuordnung - Admin: Verfahren wählen, Formular je Verfahren, zuletzt empfangene Angaben - onelogin/php-saml als neue Abhängigkeit Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
29 lines
905 B
PHP
29 lines
905 B
PHP
<?php
|
|
|
|
namespace Inhaus\Plugins\Ldap\Connection;
|
|
|
|
/**
|
|
* Eine Verbindung zum Verzeichnis. Einträge kommen normalisiert zurück:
|
|
* ['dn' => '…', 'attributes' => ['kleingeschriebener name' => list<string>]].
|
|
*/
|
|
interface LdapConnection
|
|
{
|
|
/** Anmelden; null/null = anonym. false bei falschen Zugangsdaten. */
|
|
public function bind(?string $dn, ?string $password): bool;
|
|
|
|
/**
|
|
* @param list<string> $attributes
|
|
* @return list<array{dn: string, attributes: array<string, list<string>>}>
|
|
*/
|
|
public function search(string $base, string $filter, array $attributes, int $limit = 0): array;
|
|
|
|
/**
|
|
* Einen Eintrag direkt lesen.
|
|
*
|
|
* @param list<string> $attributes
|
|
* @return array{dn: string, attributes: array<string, list<string>>}|null
|
|
*/
|
|
public function read(string $dn, array $attributes): ?array;
|
|
|
|
public function lastError(): string;
|
|
}
|