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

Check for Group membership before sending an email #43

Open
2 tasks
Jnchi opened this issue Jun 20, 2019 · 0 comments
Open
2 tasks

Check for Group membership before sending an email #43

Jnchi opened this issue Jun 20, 2019 · 0 comments

Comments

@Jnchi
Copy link
Contributor

Jnchi commented Jun 20, 2019

    if (verify_user(jwt, user_addr) == 0 // <-- Check for username match in JWT
        && verify_group(ab_token, group_id, debug) == 0) { // <-- Check for group membership
        ret = EXIT_SUCCESS;
    }

Source: https://github.com/CyberNinjas/pam_aad/blob/master/pam_aad.c#L382-491

  • If user is not a member of the group, send an ACCESS DENIED email.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant