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

Reject user as 403 if not part of a oidc connector group #1752

Open
rvirdiz opened this issue Jul 1, 2020 · 1 comment
Open

Reject user as 403 if not part of a oidc connector group #1752

rvirdiz opened this issue Jul 1, 2020 · 1 comment

Comments

@rvirdiz
Copy link

rvirdiz commented Jul 1, 2020

Hi,

I am looking for users returned from dex userSearch parameter, should not be allowed to login/authenticate if groupSearch parameter returns empty ldap group list.

Following are my dex logs, when user tries to login user dex ldap connector:

time="2020-06-15T19:40:55Z" level=info msg="performing ldap search ou=users,dc=example,dc=com sub (&(objectClass=posixAccount)(uid=myldapuser))"
time="2020-06-15T19:40:55Z" level=info msg="username \"myldapuser\" mapped to entry uid=myldapuser,ou=users,dc=example,dc=com"
time="2020-06-15T19:40:55Z" level=info msg="performing ldap search 
cn=kubeflow,ou=groups,dc=example,dc=com sub (&(objectClass=posixGroup)(memberUid=myldapuser))"
time="2020-06-15T19:40:55Z" level=info msg="login successful: connector \"ldap\", username=\"LDAP_user\", preferred_username=\"\", email=\"myldapuser@example.com\", groups=[\"kubeflow\"]"

In above logs, is there any way LDAP user "myldapuser" should not be allowed to login if not part of any groupSearch filter, groups=[].
Just want to avoid LDAP userSearch users to authenticate which are not part of whitelisted LDAP groups in groupSearch filter.

Originally posted by @rvirdiz in #1612 (comment)

@rvirdiz
Copy link
Author

rvirdiz commented Jul 1, 2020

#1612 (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

1 participant