Set the RUSER for PAM so that (eg) kerberos can set up tickets properly.
This commit is contained in:
parent
8cc3b02f98
commit
788222e410
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81529
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user