Skip to content
Discussion options

You must be logged in to vote

Hi @karlitoxz,

but leaving null:
so that any user can login

This isn't how it works. The LDAP_USERNAME and LDAP_PASSWORD simply gives you access to your LDAP server so your Laravel application can communicate with it. Setting both to null will simply connect to your LDAP server through what's called anonymous binding.

Even while connecting anonymously to your LDAP server, users attempting to login will still need to have a valid username and password.

This would be a major security risk if your above use-case was possible.

If you still want to do this, you will have to override the authenticator attempt() method here:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stevebauman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants