Skip to content

Authentication failed when LDAP server is off #620

Closed Answered by stevebauman
billydekid asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @billydekid,

You need to enable Fallback Authentication, which is basically just providing a fallback array key in the credentials array that is sent through Auth::attempt():

$credentials = [
    'mail' => $this->email,
    'password' => $this->password,
    'fallback' => [
        'email' => $this->email,
        'password' => $this->password,
    ],
];

if (Auth::attempt($credentials)) {
    // ...
}

I don't use Filament, so I can't instruct you how to insert this or modify its authentication behaviour.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@billydekid
Comment options

@wisedev99
Comment options

Answer selected by billydekid
Comment options

You must be logged in to vote
1 reply
@stevebauman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants