You are here

public static function LdapAuthenticationConfiguration::hasEnabledAuthenticationServers in Lightweight Directory Access Protocol (LDAP) 8.3

Are authentication servers available?

Return value

bool Server available or not.

2 calls to LdapAuthenticationConfiguration::hasEnabledAuthenticationServers()
LoginValidator::validateCommonLoginConstraints in ldap_authentication/src/Controller/LoginValidator.php
Validate common login constraints for user.
_ldap_authentication_login_form_alter in ldap_authentication/ldap_authentication.module
Helper function for the user login block.

File

ldap_authentication/src/Helper/LdapAuthenticationConfiguration.php, line 54

Class

LdapAuthenticationConfiguration
Configuration helper class for LDAP authentication.

Namespace

Drupal\ldap_authentication\Helper

Code

public static function hasEnabledAuthenticationServers() {
  return count(self::getEnabledAuthenticationServers()) > 0 ? TRUE : FALSE;
}