public function validateCredentials(Authenticatable $user, array $credentials)
{
// Retrieve the authentication username for the AD user.
$username = $this->getLoginUsernameFromUser($user);
// Retrieve the users password.
$password = $this->getPasswordFromCredentials($credentials);
// Perform LDAP authentication.
return $this->authenticate($username, $password);
}