You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently credentials used to bind to LDAP server are the one entered in login form, (username = uid).
Bind fails because users cannot directly bind to openldap using their uid. They must use DN to bind.
Reproduction steps
Configure ldap in snipe-it using bind user
Try to connect with LDAP user
Login failed
Expected behavior
Instead of trying to bind to ldap server with users credentials, a search should be made using bind_user service account and user_filter to find the user.
Then, we should save the user DN and try to bind to the LDAP using DN
Screenshots
Snipe-IT Version
v7.1.15 (docker image)
Operating System
Ubuntu 22.04
Web Server
apache2 - 2.4.52-1ubuntu4.12
PHP Version
8.1.2
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
fresh install
docker container
The text was updated successfully, but these errors were encountered:
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Debug mode
Describe the bug
Ldap server: OpenLDAP
Snipe-it: Docker image v7.1.15
I cannot make my users login using their ldap
uid
field which is different from theirDN
.According to login form:
snipe-it/app/Http/Controllers/Auth/LoginController.php
Lines 170 to 179 in 43d66a8
The findAndBind function is used:
snipe-it/app/Models/Ldap.php
Line 92 in 43d66a8
Currently credentials used to bind to LDAP server are the one entered in login form, (username = uid).
Bind fails because users cannot directly bind to openldap using their uid. They must use
DN
to bind.Reproduction steps
Expected behavior
Instead of trying to bind to ldap server with users credentials, a search should be made using bind_user service account and user_filter to find the user.
Then, we should save the user DN and try to bind to the LDAP using DN
Screenshots
Snipe-IT Version
v7.1.15 (docker image)
Operating System
Ubuntu 22.04
Web Server
apache2 - 2.4.52-1ubuntu4.12
PHP Version
8.1.2
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
The text was updated successfully, but these errors were encountered: