ldap test2
This commit is contained in:
@@ -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}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user