Sicherheitsupdate nach Audit (0.29.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m50s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m34s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m45s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m30s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m9s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m8s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m5s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 11:34:54 +00:00
parent a37895a16a
commit f1202bea08
226 changed files with 1952 additions and 450 deletions

View file

@ -20,10 +20,9 @@ class NativeLdapConnector implements LdapConnector
$port = $options['port'] ?: ($scheme === 'ldaps' ? 636 : 389);
$uris = implode(' ', array_map(fn ($host) => str_contains($host, '://') ? $host : "{$scheme}://{$host}:{$port}", $options['hosts']));
if (! $options['verify_tls']) {
// Muss vor ldap_connect gesetzt werden, damit es für die Verbindung gilt.
ldap_set_option(null, LDAP_OPT_X_TLS_REQUIRE_CERT, LDAP_OPT_X_TLS_NEVER);
}
// Muss vor ldap_connect gesetzt werden und gilt prozessweit – deshalb immer ausdrücklich
// setzen, sonst prüften nach einem Server ohne Prüfung auch spätere Verbindungen nicht mehr.
ldap_set_option(null, LDAP_OPT_X_TLS_REQUIRE_CERT, $options['verify_tls'] ? LDAP_OPT_X_TLS_DEMAND : LDAP_OPT_X_TLS_NEVER);
$link = ldap_connect($uris);

View file

@ -132,6 +132,11 @@ class LdapDriver extends IdentityDriver
return ['bind_password'];
}
public function destinationFields(): array
{
return ['hosts', 'port', 'bind_dn', 'encryption'];
}
public function defaultAttributeMap(): array
{
return LdapDirectory::DEFAULT_MAPS['ad'];