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

ldap filter not working #36

Open
MarvinKlar opened this issue Nov 13, 2018 · 2 comments
Open

ldap filter not working #36

MarvinKlar opened this issue Nov 13, 2018 · 2 comments

Comments

@MarvinKlar
Copy link

Hello everyone,

I currently try to configure Discourse to only allow users in a specific ldap group to log in.

My plugin configuration:
ldap enabled: true
ldap hostname: the hostname of my ldap server
ldap port: 389
ldap method: plain
ldap base: the base of my ldap server
ldap uid: userPrincipalName
ldap bind dn: Nothing
ldap password: Nothing
ldap filter: (&(userPrincipalName=%{username})(memberOf=cn=[the name of the required group],ou=....,[base]))

When using this configuration, nobody can log in to the forum. When I use the bind dn and password, everybody can log in.
I also tried this filter without success (copied from my ldap servers filter): (&(&(&(userPrincipalName=%{username})(memberOf=[dn of the group]))))

What do I have to configure, to only allow users in that specific group to log in?

I didn't found any errors or indicators in the log. Please help!

Thanks fou your help and attention!

@Victor-Morel
Copy link

Same error, I have a omniauth_error when applying a filter

@Victor-Morel
Copy link

My problem was solved using this comment

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