ldap test2
All checks were successful
Deploy / deploy-staging (push) Successful in 22s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-15 01:12:14 +02:00
parent c29f05762e
commit aff85ed12b
2 changed files with 32 additions and 0 deletions

View File

@@ -28,6 +28,23 @@ final class LdapProvisioner
&& function_exists('ldap_add');
}
/**
* @return array<string, string>
*/
public function diagnostics(): array
{
return [
'host' => trim((string) ($this->config['ldap']['host'] ?? '')),
'port' => (string) ((int) ($this->config['ldap']['port'] ?? 389)),
'bind_dn' => trim((string) ($this->config['ldap']['bind_dn'] ?? '')),
'users_dn' => trim((string) ($this->config['ldap']['users_dn'] ?? '')),
'starttls' => ((bool) ($this->config['ldap']['use_starttls'] ?? false)) ? 'aktiv' : 'inaktiv',
'group_assignment_mode' => trim((string) ($this->config['ldap']['group_assignment_mode'] ?? 'group_memberuid')),
'group_member_attribute' => trim((string) ($this->config['ldap']['group_member_attribute'] ?? 'memberUid')),
'ldap_extension' => $this->canUseLdap() ? 'verfügbar' : 'nicht verfügbar',
];
}
/**
* @return array{success: bool, message: string}
*/