Friday, 23 August 2013

Disable hostname resolution in PAM

Disable hostname resolution in PAM

When authenticating using PAM, PAM exposes the remote host to the module.
On the code side of things, it exposes this via PAM_RHOST using
pam_get_item(). However, PAM will attempt to resolve the IP address of the
remote host to a name, if possible. If that is the case, the remote name
gets passed to the module. Is there anyway to force PAM to not resolve the
host names, so that the modules always only get the IP address of the
authenticating user?

No comments:

Post a Comment