Unable to Login using AD account
My LDAP connection test is successful but when i tried login using AD account, i am getting error: the username or password is incorrect. I am unable to find the location of the log file even to start troubleshooting. Please Help
Please confirm you have done the following before posting your bug report:
- [ ] I have enabled debug mode <- how to do that
- [ X] I have read checked the Common Issues page
Please provide answers to these questions before posting your bug report:
- Version of Snipe-IT you're running v3.6.2 build 10 (g927a12f)
- What OS and web server you're running Snipe-IT on CentOS 7
- What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) install.sh
https://snipe-it.readme.io/docs/getting-help#step-3-check-your-app-and-server-logs
Thank you for your immediate respond. The error i get from the laravel.log is
production.Error: there was an error authenticating the LDAP user: could not find user in LDAP directory
Your LDAP filter is likely wrong then. It's able to connect, it just can't find the user within your directory using the filter you provided.
Not sure what is the right filter that i shall be using. I tried different filter and some listed in the discussion board by other user, none working for me
Can you post your settings?
Please see the documentation here: https://snipe-it-manual.readme.io/docs/ldap

Hi @siekee
You look to be using some fields names that are used for LDAP but different to AD field names. "uid" for instance is not used in AD by default.
Generally for AD you should probably have these, the LDAP filter is a suggestion, perhaps go as per the doco: LDAP Filter: &((objectcategory=person)(objectclass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)) Username Field: samaccountname LDAP Authentication query: samaccountname=
For example this is my LDAP Filter: &(!(sAMAccountName=svc*))(!(sAMAccountName=test*))(mail=*)(objectcategory=person)(objectclass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)) This ensures service and test accounts are excluded and user accounts without an email address are excluded.
Thanks for the advise. I had change the LDAP filter, username field and auth query to as shown above but still getting the same error
Is that the correct structure of your OU? Do you have an OU called "am" within the OU "Staff"? With all the users you want available in Snipe within the "am" OU?
i have the OU "am" and i can sync the user over to snipe-it without any issue, just having issue login the user into snipe-it
Hmm. Could be LDAP Filter related maybe. I think I've exhausted my expertise now.
Make sure the Username Field is set to samaccountname, and that the LDAP auth query is set to sAMAccountName= as shown in the guide.

Thanks for your reply. I changed the LDAP filter to &(cn=*) and also the username field and auth query to what you suggest but still not able to login too
And you've checked the box on the LDAP settings that says this is an Active Directory domain?
Sent from my iPhone
On Dec 21, 2016, at 2:27 AM, siekee [email protected] wrote:
Thanks for your reply. I changed the LDAP filter to &(cn=*) and also the username field and auth query to what you suggest but still not able to login too
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
This is an Active Directory server is not ticked. I ticked it and it make no different, still not able to login
how about set the LDAP filter to simpler query such as:
objectCategory=user
does it work?
@denihanca same, not working
We got exact same problem.. I found that our AD domain name was missing. After adding that I was able to log in with AD account. It is strange because I was able to sync all my AD accounts without any error messages.

@ittugi Glad that it is working for you. That particular field is not empty for me