You are here

public static function CredentialsStorage::storeUserDn in Lightweight Directory Access Protocol (LDAP) 8.4

Same name and namespace in other branches
  1. 8.3 ldap_servers/src/Helper/CredentialsStorage.php \Drupal\ldap_servers\Helper\CredentialsStorage::storeUserDn()

Stores the user DN as provided by other LDAP modules.

Parameters

string|null $userDn: DN to store.

3 calls to CredentialsStorage::storeUserDn()
CredentialsStorageTest::testCredentialsStorage in ldap_servers/tests/src/Unit/CredentialsStorageTest.php
Test the temporary storage of passwords.
LoginValidatorBase::bindToServerAsUser in ldap_authentication/src/Controller/LoginValidatorBase.php
Bind to server.
LoginValidatorBase::testUserPassword in ldap_authentication/src/Controller/LoginValidatorBase.php
Tests the user's password.

File

ldap_servers/src/Helper/CredentialsStorage.php, line 43

Class

CredentialsStorage
Temporarily stores credentials from user input.

Namespace

Drupal\ldap_servers\Helper

Code

public static function storeUserDn(?string $userDn) : void {
  self::$userDn = $userDn;
}