Skip to content
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

[BUG] 4.5.0 Can't find LDAP users to add in rooms #24712

Open
catalins95 opened this issue Mar 5, 2022 · 1 comment
Open

[BUG] 4.5.0 Can't find LDAP users to add in rooms #24712

catalins95 opened this issue Mar 5, 2022 · 1 comment

Comments

@catalins95
Copy link

catalins95 commented Mar 5, 2022

Description:

A fresh install , even the os, debian. After installing , I have managed to setup the LDAP auth, all good, users can loging, but in channels or rooms, when I try to add a new user, I cannot find him.
Same users who I can't find to add in a room, I can't add in all other rooms.
This bug applies only to several users, not to all of them.
When I try to write their CommonName or their username , the dropdown result from the search-box shows "empty" , meaning no result
Real example:
I have 30 users with cn(commonname) starting from A to Z, only letters.
When i go to a room-> add member-> search-box - it shows me the first 10 results , with the search-box empty, for example from name A to name M dropdown list, but after a search for a user whoose name starts with a letter after M, it shows empty as a result, even though the users exists.

Steps to reproduce:

  1. Follow all the installation steps from rocket.chat guide, nothing else

Expected behavior:

I would have expected to add all the users I want

Actual behavior:

Cannot find all LDAP users authenticated.

Server Setup Information:

  • Version of Rocket.Chat Server: 4.5.0
  • Operating System: Debian 10.4
  • Deployment Method: tar, npm i
  • Number of Running Instances: 1
  • DB Replicaset Oplog: -
  • NodeJS Version: 14.18
  • MongoDB Version: 5.0

Client Setup Information

  • Desktop App or Browser Version: both methods, same bug
  • Operating System: it doesn't matter the clients operating system

Relevant logs:

Lots of
{"level":50,"time":"2022-03-03T15:29:13.266Z","pid":1,"hostname":"f9c9770d540f","name":"","name":"LDAP","err":{"type":"Error","message":"User not found","stack":"Error: User not found\n at server/lib/ldap/Manager.ts:167:11\n at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40"},"msg":"User not found"}

And "User not found" error when i try a LDAP search test on a 1st try, but the 2nd or 3rd is succesfull.

@catalins95
Copy link
Author

catalins95 commented Mar 5, 2022

Possible fix by #24328
I will try this fix monday......right now I am not at home....

If someone wants to try this before me, before monday 😄 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant