🐛 Bug Report: LDAP admin group not connecting
👟 Reproduction steps
set up the LDAP admin group, the members of the group can not log in.
👍 Expected behavior
log users of the group in as admins
👎 Actual Behavior
failed login "wrong username or password"
📜 Logs
[Nest] 44 - 09/30/2024, 9:47:06 AM LOG [AuthService] Failed login attempt for user Admin_account from IP MyIP
@WolverinDEV i know you helped on the other LDAP issues.
also i tested the ldapsearch with this:
ldapsearch -x -b "ou=all users,dc=domain,dc=domain,dc=domain" -H ldap://ServerIP -D "cd=admin_account,ou=administrators,ou=all users,dc=domain,dc=domain,dc=domain" -w Password 'memberOf=CN=FileSharingAdmins,OU=Groups,OU=All Users,DC=domain,DC=domain,DC=domain'
comes back with the users of the group.
@WolverinDEV i know you helped on the other LDAP issues.
Hey, sorry for the late reply.
I'm currently on vacation. I'll be back at Tuesday:)
@WolverinDEV i know you helped on the other LDAP issues.
Hey, sorry for the late reply. I'm currently on vacation. I'll be back at Tuesday:)
Enjoy your vacation!
Hey @dnielso5,
If I understood your issue correctly, you stated that "admin users" cannot log in, while "regular users" can?
Just to clarify, the admin group is only checked after the user has been authenticated. For instance, we first search for the user, then we validate their password. If the password matches, only then do we check if the user is a member of the admin group to determine if they have admin privileges.
So if the admin users cannot log in at all, it suggests that the system can't find those users during the initial search, not that it's an admin group issue.
Hey @dnielso5,
If I understood your issue correctly, you stated that "admin users" cannot log in, while "regular users" can?
Just to clarify, the admin group is only checked after the user has been authenticated. For instance, we first search for the user, then we validate their password. If the password matches, only then do we check if the user is a member of the admin group to determine if they have admin privileges.
So if the admin users cannot log in at all, it suggests that the system can't find those users during the initial search, not that it's an admin group issue.
I see, so you need to be in BOTH groups to be an admin. I was under the impression that if you were added into the admin group it was assumed you were also able to log in.
At this point i was able to get my admin account logged in and be able to see the admin configs.
Thank you!