LdapRecord-Laravel: [Support] Unable to authenticate using OpenLDAP

After many attempt using LdapRecord-Laravel to authenticate users, it still not works and the response is ‘These credentials do not match our records.’ I followed the steps of the documentation (twice, after creating a blank project). The php-ldap connection test php artisan ldap:test returns successful. I am able to search in my active directory: Users::get() or User::where('uid', '=', 'xxxxxx')->get(); There is nothing about authentication failure in storage/logs/laravel.log.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Also:

I already tried with the model LdapRecord\Models\OpenLDAP\User::class but it does not work too

You will still need to use this model with OpenLDAP.

and you do not specify his need in ‘Plain LDAP authentification’, only in the section ‘Synchronized Database Authentication’.

I’m unsure why the assumption would be made to use an ActiveDirectory based model with OpenLDAP. I’ll update the documentation to make sure this is explicitly clear.