I have a question about using pam_radius. I want to distinguish who those users are, so I can run some script when they login. However, I want the scripts to know if the user is authenticated locally or using radius.
I thought about putting users who authenticate with radius into groups, but I don’t know if this can be done automatically somehow.
Alternatively, I could check some environment variable in the script, but I can’t seem to find any that indicate which authentication method the user used.
I want users using radius to authenticate to have some things done by this script, but other users (locally authenticated), will have different logic in the script…
I use AlmaLinux 8 currently.
[link] [comments]
SOCIAL SHARE CARD GENERATOR