diff options
author | nectar <nectar@FreeBSD.org> | 2001-01-23 21:43:32 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2001-01-23 21:43:32 +0000 |
commit | 387e0e85427c48e3b6317cca71d103d6754fb444 (patch) | |
tree | 0e9b615c153962843942d8e6c887e9b72f318c27 /usr.bin | |
parent | ce6fea2dce7ba4bba0ac2907c0fdb4d310c5028b (diff) | |
download | FreeBSD-src-387e0e85427c48e3b6317cca71d103d6754fb444.zip FreeBSD-src-387e0e85427c48e3b6317cca71d103d6754fb444.tar.gz |
Call pam_setcred.
Reviewed by: markm, months ago
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/login/login.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 967463c..c53ba6a 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -714,6 +714,10 @@ auth_pam() } else syslog(LOG_ERR, "Couldn't get PAM_USER: %s", pam_strerror(pamh, e)); + if ((e = pam_setcred(pamh, PAM_ESTABLISH_CRED)) != + PAM_SUCCESS) + syslog(LOG_ERR, "Couldn't establish credentials: %s", + pam_strerror(pamh, e)); rval = 0; break; |