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

problem with 'filter' setting #71

Open
silas101 opened this issue Oct 3, 2016 · 1 comment
Open

problem with 'filter' setting #71

silas101 opened this issue Oct 3, 2016 · 1 comment

Comments

@silas101
Copy link

silas101 commented Oct 3, 2016

I'm using the discourse-ldap-auth plugin for Discourse which is based on this plugin. We're binding to Active Directory. For the "filter" field, I'm using the following syntax:

memberOf=CN=Group,OU=Users,DC=Domain,DC=com

Authentication works for the user if that user is the only member of "Group". However, if more than one member is added to "Group", only the first user account on the group membership list is able to authenticate. Am I using the syntax for the 'filter' field incorrectly?

@nkreevo
Copy link

nkreevo commented Jul 9, 2024

experiencing the same problem rn... any updates?

:filter => '(&(objectClass=user)(memberOf=CN=Group1,OU=unit1,OU=unit2,OU=unit3,DC=mydomain,DC=local))',

also makes no difference to

:filter => '(&(memberOf=CN=Group1,OU=unit1,OU=unit2,OU=unit3,DC=mydomain,DC=local))',

i also use gitea with ldap, where i have the following filter settings:

:filter => '(&(objectClass=user)(memberOf=CN=Group1,OU=unit1,OU=unit2,OU=unit3,DC=mydomain,DC=local)(sAMAccountName=%s))',

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

2 participants