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

Require a combination of groups #240

Open
bleenders opened this issue Jun 22, 2020 · 1 comment
Open

Require a combination of groups #240

bleenders opened this issue Jun 22, 2020 · 1 comment

Comments

@bleenders
Copy link

bleenders commented Jun 22, 2020

Hey there,

I was wondering if it is possible to authorize based on a combination of 2 groups. Right now it seems to be satisfied when the user is part of one of the groups, I only want to grant them access when they are part of both.

ldap_server test {
    satisfy all;
    url ldap://127.0.0.1:389/OU=accounts,OU=customers,DC=domain,DC=test?cn?sub?(objectClass=inetOrgPerson);
    binddn "cn=admin,dc=domain,dc=test";
    binddn_passwd superSecret;
    group_attribute uniqueMember;
    group_attribute_is_dn on;
    require valid_user;
    require group 'cn=group1,ou=groups,ou=customers,dc=domain,dc=test';
    require group 'cn=group2,ou=groups,ou=customers,dc=domain,dc=test';
}

Is something like that possible out of the box?

@zzzzl13
Copy link

zzzzl13 commented Apr 16, 2021

Maybe you can try to add another ldap_server "test1", and add "auth_ldap servers test1" to load this server

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