Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Check for Group membership before sending an email #12

Open
2 tasks
oxr463 opened this issue Oct 8, 2021 · 0 comments
Open
2 tasks

Check for Group membership before sending an email #12

oxr463 opened this issue Oct 8, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@oxr463
Copy link
Contributor

oxr463 commented Oct 8, 2021

    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

Source: CyberNinjas/pam_aad#43

@oxr463 oxr463 added the enhancement New feature or request label Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant