New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP Login does not work #10818
Comments
Anything in the logs? This isn't really giving us a lot to work with. When you try to test the LDAP login using the test button, what happens? |
Also can be helpful to have screenshots (redacted is fine, of course) of your LDAP settings, and to know what your LDAP server is. |
If you’re using active directory, maybe you need to check the box for “this is an AD server”? What AD server is it? |
We do not use an AD, just plain LDAP. |
Well, the system uses the LDAP Auth query - which should be of the form Depending on your LDAP provider, you may need to grant Bind permissions to the users who you want to be able to log in. You may also be using an unsupported attribute for the LDAP auth query? Share your settings (redact out whatever you need to) and I’ll try to help. |
The snipeit-error.log under /var/log/apache2 shows the following when I try to login with an LDAP User: [Wed Mar 23 16:10:08.389746 2022] [authz_core:debug] [pid 114723] mod_authz_core.c(817): [client MYCLIENT:58586] AH01626: authorization result of Require all granted: granted, referer: https://MYDOMAIN/login |
you’ll also want to check out, in your Snipe-IT install, storage/logs/laravel.log - sometimes that will show you something good. By the looks of it I think you have everything configured correctly. So long as the user you’re logging in as is allowed to bind correctly to the directory with its username and password, it looks to me like it should work. Hopefully we can find some errors somewhere in your Laravel log - it may also help to turn on debug mode |
The laravel.log sadly shows nothing, the log is empty :( The user does work on all our other instances where we use LDAP login (eg. Jira, Confluence, etc...) so we really don't know why the login itself does not work. |
That log probably shouldn’t be empty. Make sure the laravel.log file (and the directories above it) are writable by the user the web server is running as, so |
All folders belong to www-data but the logs only show two entries from march 11th which are |
Isse solved by the hack mentioned here: #9903 |
Debug mode
Describe the bug
We added our LDAP Server successfully to SnipeIT. When I go to people, I can see all our users. In the user profile is the checkmark green to "Login activated" but when the user tries to login it won't work.
Reproduction steps
...
Expected behavior
User Login works
Screenshots
Snipe-IT Version
5.4.1
Operating System
Ubuntu 18.04
Web Server
Apache
PHP Version
7.4.3
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: