How to get the source ip with pam_exec.so like $PAM_RHOST
I can run an external command via pam_exec and I can use the following PAM
items as environment variables: PAM_RHOST, PAM_RUSER, PAM_SERVICE,
PAM_TTY, PAM_USER and PAM_TYPE.
PAM_RHOST retunrs the fqdn.
Is there another way than dig +short $PAM_RHOST to get the source ip?
No comments:
Post a Comment