jonmbake / discourse-ldap-auth

Discourse plugin to enable LDAP/Active Directory authentication.
MIT License
70 stars 53 forks source link

ldap filter not working #36

Open MarvinKlar opened 5 years ago

MarvinKlar commented 5 years ago

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

Same error, I have a omniauth_error when applying a filter

Victor-Morel commented 5 years ago

My problem was solved using this comment