Skip to content
Advertisement

Invalid credentials adldap2/adldap2-laravel package

I am implementing LDAP authentication in laravel app. When I run this code I am getting an error.

I don’t know whether it is correct or not. I am totally new to LDAP and I don’t know how it works by seeing the documentation I have done till now.
Please help me out for setting the correct configuration settings for laravel-ldap.

JavaScript
JavaScript

the credential which I got from client

JavaScript

my .env file

JavaScript

ldap.php

JavaScript

ldap_auth.php

JavaScript

Thank you

Advertisement

Answer

The LDAP server is saying that your provided credentials are wrong. Are you sure, that your username and password is 100% correct? A space or any kind of invalid character?

JavaScript

Also, is it working with ldap_bind() function?

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement