[sudo-workers] [PATCH] Move the pam_set_item calls for RUSER, USER, and RHOST to the pam_init function

Jamie Beverly jamie.beverly at yahoo.com
Wed Aug 5 23:07:44 EDT 2009

This patch, or something similar, is necessary for pam auth modules to identify the calling user during authentication. 

pam_prep_user() is called after pam_verify(), which results in PAM_RUSER being undefined for auth modules.

By moving it so that the pam_set_item() calls are made as part of pam_init(), PAM_RHOST, PAM_RUSER, and PAM_USER are properly setup during authentication.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sudo.patch
Type: application/octet-stream
Size: 1390 bytes
Desc: not available
URL: </pipermail/sudo-workers/attachments/20090805/af6f8637/attachment.obj>

More information about the sudo-workers mailing list