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

So how should the User Search filter look right? #11146

Open
prostofirma opened this issue Jun 14, 2018 · 0 comments
Open

So how should the User Search filter look right? #11146

prostofirma opened this issue Jun 14, 2018 · 0 comments

Comments

@prostofirma
Copy link

prostofirma commented Jun 14, 2018

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: [email protected], 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?

@prostofirma prostofirma changed the title Do not download users from Active Directory So how should the User Search filter look right? Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants