Closed matthewmerendo closed 4 years ago
I updated the manual for Adldap-Laravel 6.0. I hope it helps.
Thanks! Now it works perfectly!
I do have one more question, though: Is there a way to restrict access by OU group?
(I've tried using the SCOPES feature of the adldap2-laravel package, but they don't seem to apply?
For that, I would add an entry identifiers.ldap.restrict_users_by_ou_group
to ldap_auth.php
. Then, inside LoginController::attemptLogin()
, I would check if this config option is set. If so, I would retrieve this field also from the LDAP server and check that the group is allowed. Hope it helps.
I am using Laravel 6.0, not 5.7, but I'm having an issue with the ldap plugin, not Laravel core. (EDIT TO ADD: adldap2/adldap2-laravel 6.0 as well)
Your tutorial works fine until step 10, configuring config/ldap_auth.php. Your tutorial says:
`10. Configure the LDAP authentication in config/ldap_auth.php 'usernames' => [
],`
but my ldap_auth.php has no 'usernames' key. The closest thing it has is:
`'identifiers' => [
`
Any thoughts?