public static function ExternalAuthenticationHelper::getUidFromIdentifierMap in Lightweight Directory Access Protocol (LDAP) 8.3
Replaces the authmap table retired in Drupal 8.
3 calls to ExternalAuthenticationHelper::getUidFromIdentifierMap()
- GroupUserUpdateProcessor::runQuery in ldap_user/
src/ Processor/ GroupUserUpdateProcessor.php - Runs the updating mechanism.
- LoginValidator::checkAllowedExcluded in ldap_authentication/
src/ Controller/ LoginValidator.php - Check if exclusion criteria match.
- LoginValidator::initializeDrupalUserFromAuthName in ldap_authentication/
src/ Controller/ LoginValidator.php - Determine if the corresponding Drupal account exists and is mapped.
File
- ldap_user/
src/ Helper/ ExternalAuthenticationHelper.php, line 43
Class
- ExternalAuthenticationHelper
- Helper class to wrap external_auth service.
Namespace
Drupal\ldap_user\HelperCode
public static function getUidFromIdentifierMap($identifier) {
$authmap = \Drupal::service('externalauth.authmap');
return $authmap
->getUid($identifier, 'ldap_user');
}