Skip to content

LDAP Password required in Laravel but not in non-laravel version #502

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

You must be logged in to vote

Hi @chrispian,

You must use the bind() method to anonymously connect to your LDAP server and provide null as the password:

use LdapRecord\Container;

$connection->auth()->bind('USER NAME GOES HERE', null);

The attempt() method is meant to be provided to end-users so that blank passwords cannot be provided to allow anonymous binding.

Let me know if you encounter anything else 👍

Replies: 2 comments 2 replies

Comment options

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

Answer selected by chrispian
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
2 participants