Replies: 2 comments 11 replies
-
Hi @chrispian, I'll help you get up and running 👍
This is not possible. LdapRecord must search for the user in your directory to authenticate them, just as Laravel does with Eloquent authentication. LdapRecord will take the login attribute you provide (in your case, Can you post your |
Beta Was this translation helpful? Give feedback.
-
@stevebauman Thank you again! This one is weird and I admit I'm new to ldap/ad so this help is very much appreciated. Here is the
And here is the
Let me know if you need anything else. |
Beta Was this translation helpful? Give feedback.
-
Ok, I have a strange issue and some theories but I'm new to LDAP/AD in general. I installed the
LdapRecord
stand alone version and was able to connect to our AD server and authenticate the user following the example in the docs. Took about 3 minutes and worked as expected.When trying to do the same with Laravel (via tinker) I get an ldap_search error. The Laravel version appears to be doing a search on an attribute first and then trying to login. Is there any way to skip this and login exactly like it does with the non Laravel version?
Here is the example in NON-Laravel:
The above works just fine.
In Laravel
LoginRequest.php
I have the following:And I get the ldap_search error here. I believe we have search disabled - I'm trying to find out that detail. But ideally, I would like to skip searching as I'll know the samaccountname every time. It seems like what the Laravel version does is search an attribute then tries to login vs just logging in like the stand alone version.
I've tried this in tinker as well. I'm using a brand new laravel install with no extra libraries installed, just ldaprecord. I'm using Breeze just to keep things simple to get this working and just attempting a
Plain Login
right now vs Database Sync.The instructions are great but I'm stuck on this problem and can't seem to get past it. Any suggestions of things to try would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions