RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.42k stars 10.52k forks source link

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

Open catalins95 opened 2 years ago

catalins95 commented 2 years ago

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:

Client Setup Information

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 commented 2 years ago

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 😄 ❤️