Set the RUSER for PAM so that (eg) kerberos can set up tickets properly.

This commit is contained in:
Mark Murray 2001-08-11 14:24:13 +00:00
parent 8cc3b02f98
commit 788222e410
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81529

View File

@ -213,6 +213,8 @@ main(int argc, char *argv[])
errx(1, "pam_start: %s", pam_strerror(pamh, retcode));
}
PAM_SET_ITEM(PAM_RUSER, getlogin());
gethostname(myhost, sizeof(myhost));
PAM_SET_ITEM(PAM_RHOST, myhost);