public function AuthenticationServers::getAvailableAuthenticationServers in Lightweight Directory Access Protocol (LDAP) 8.4
Get available authentication servers.
Return value
array Server IDs.
1 call to AuthenticationServers::getAvailableAuthenticationServers()
- AuthenticationServers::authenticationServersAvailable in ldap_authentication/
src/ AuthenticationServers.php - Authentication servers available.
File
- ldap_authentication/
src/ AuthenticationServers.php, line 62
Class
- AuthenticationServers
- Authentication serves.
Namespace
Drupal\ldap_authenticationCode
public function getAvailableAuthenticationServers() : array {
/** @var array $available_servers */
$available_servers = $this->storage
->getQuery()
->condition('status', 1)
->execute();
$result = [];
foreach ($this->config
->get('sids') as $configured_server) {
if (isset($available_servers[$configured_server])) {
$result[] = $configured_server;
}
}
return $result;
}