Closed nathankamau closed 5 years ago
Hi @nathankamau,
Are you wanting to authenticate users by username
or email
?
Hi, By username
On Fri, 15 Feb 2019, 4:54 pm Steve Bauman <notifications@github.com wrote:
Hi @nathankamau https://github.com/nathankamau,
Are you wanting to authenticate users by username or email?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Adldap2/Adldap2-Laravel/issues/667#issuecomment-464058175, or mute the thread https://github.com/notifications/unsubscribe-auth/AHsLO4joYCuuJ46uzYoGE3bUcMkjHuCEks5vNrwdgaJpZM4a8XAJ .
Ok sounds good.
ADLDAP_ACCOUNT_PREFIX
& ADLDAP_ADMIN_ACCOUNT_PREFIX
)ADLDAP_ACCOUNT_SUFFIX
to your User Principal Name suffix. This is usually equal to your base DN segments (i.e. "@ourdomain.co.org"
) ldap.disover
option to samaccountname
username
database columnNote: After changing the configuration, make sure it's not being cached by running
php artisan config:clear
once modified.
Give the above a shot and let me know if it works for you. Also, check your logs to see what is going on behind the scenes (in storage/logs/
).
Hi Steve, I did the above but still could not authenticate with Auth::attempt($creds) however the Adldap::auth()->attempt() returns true. What could I be missing?
Awesome glad your were able to get it working, thanks for following up @nathankamau!
Hi, I can successfully bind to the AD but cant authenticate both Auth::attempt or Adldap::auth()->attempt().
Both return nullss Here is my .env
Description:
Where would I be going wrong.