private function LoginValidator::validateCommonLoginConstraints in Lightweight Directory Access Protocol (LDAP) 8.3
Validate common login constraints for user.
Return value
bool Continue authentication.
2 calls to LoginValidator::validateCommonLoginConstraints()
- LoginValidator::processLogin in ldap_authentication/
src/ Controller/ LoginValidator.php - Perform the actual logging in.
- LoginValidator::processSsoLogin in ldap_authentication/
src/ Controller/ LoginValidator.php - Processes an SSO login.
File
- ldap_authentication/
src/ Controller/ LoginValidator.php, line 792
Class
- LoginValidator
- Handles the actual testing of credentials and authentication of users.
Namespace
Drupal\ldap_authentication\ControllerCode
private function validateCommonLoginConstraints() {
// Check that enabled servers are available.
if (!LdapAuthenticationConfiguration::hasEnabledAuthenticationServers()) {
$this->logger
->error('No LDAP servers configured.');
if ($this->formState) {
$this->formState
->setErrorByName('name', 'Server Error: No LDAP servers configured.');
}
return FALSE;
}
$this
->initializeDrupalUserFromAuthName();
return $this
->verifyAccountCreation();
}