Adldap\Auth\GuardInterface::attempt PHP Method

attempt() public method

Authenticates a user using the specified credentials.
public attempt ( string $username, string $password, boolean $bindAsUser = false ) : boolean
$username string The users AD username.
$password string The users AD password.
$bindAsUser boolean Whether or not to bind as the user.
return boolean
    public function attempt($username, $password, $bindAsUser = false);