DirectoryTree / LdapRecord-Laravel

Multi-domain LDAP Authentication & Management for Laravel.
https://ldaprecord.com/docs/laravel/v3
MIT License
496 stars 52 forks source link

[Support] Authentication Data invalid #460

Closed joseserrano15 closed 2 years ago

joseserrano15 commented 2 years ago

Environment:

image

This auth.php Screenshot_3

.env Screenshot_5

LoginController.php Screenshot_2

Do you know what could be the problem? Thanks

stevebauman commented 2 years ago

Hi there @joseserrano15,

There appears to be a spelling error with the samaccountname array key in your credentials method.

joseserrano15 commented 2 years ago

Thanks for your answer

I used 'sameaccountname' thanks to an answer on stack overflow... So, Which one should it be? I tried with 'uid', 'sameaccountname', 'displayName' but not works.

stevebauman commented 2 years ago

samaccountname 👍

joseserrano15 commented 2 years ago

Oh sorry!

I didn't realize the word was misspelled, it works perfectly with 'samaccountname '.

Thank you very much!

stevebauman commented 2 years ago

Happy to help @joseserrano15! Marking this as resolved. Feel free to open another issue if you encounter anything 👍