RocketChat / RocketChat/Rocket.Chat
So how should the User Search filter look right?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Good afternoon! I apologize for my English, I use an interpreter.
I have installed:
Debian 9.4
rocket chat 0.65.1
Tell me, please, the working line in the LDAP User Search settings.
I created the RocketChat unit in Active Directory and it has a security group, added the right users to this group, looks like this:
CN = RocketChat, OU = RocketChat, DC = example, DC = domain, DC = en
I only work with the default settings (objectclass = *).
It does not suit me, because all users and groups are being pulled.
I tried several options, not one does not work ...
{"filter": "(& (objectCategory = person) (objectclass = user) (sAMAccountName = # {username}))", "scope": "one", "userDN": "CN =, CN = RocketChat, OU = RocketChat, DC = example, DC = domain, DC = en "," password ":" mypass "}
{"filter": "(& (objectCategory = person) (objectclass = user) (sAMAccountName = # {username}))", "scope": "one", "userDN": "cn = administrator, CN = RocketChat, OU = RocketChat, DC = example, DC = domain, DC = en
"," password ":" mypass "}
{"Filter": "(& (objectCategory = person) (objectclass = user) (memberOf: 1.2.840.113556.1.4.1941: = DC = example, DC = domain, DC = en) (sAMAccountName = # {username}) ), Scope: sub, userDN: rocket.service@domain.com, password: urpass
Also I have a Remote Assistance group in which there are all users, it is in the Users subdivision, I tried to specify it, nothing changes.
{"filter": "(& (objectCategory = person) (objectclass = user) (sAMAccountName = # {username}))", "scope": "one", "userDN": "CN = Remote Assistance, CN = Users , DC = example, DC = domain, DC = en "," password ":" mypass "}
Probyval as written in the settings:
memberOf = c CN = RocketChat, OU = RocketChat
Nothing too
CN = RocketChat, OU = RocketChat
CN = RocketChat, OU = RocketChat, DC = example, DC = domain, DC = en
There are errors in the logs, but not related to LDAP:
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/tmp/zipFiles/oRriJEDfkeYxv9yyT.zip'}
{Error: ENOENT: no such file or directory, stat '/tmp/zipFiles/oRriJEDfkeYxv9yyT.zip'
So how should the User Search filter look right?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Rocket.Chat's LDAP User Search configuration and the supplied Active Directory filters, including the reported scope, userDN, and group membership values. No repository file or test is named; done would require confirming the supported configuration or documenting the precise product behavior that prevents the requested user filtering.
Written by the indexing model from the issue text.
Assessment
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100