aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/login
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2001-01-23 21:43:32 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2001-01-23 21:43:32 +0000
commit8ad2668439a1ce0c9c0af96e54b438087b1c85a0 (patch)
treef63c7564551b0e06e9773a1384cc20996e5e2c18 /usr.bin/login
parent97eba215ac0534943ae9d9d5f1a8f77be28ca2bd (diff)
downloadsrc-8ad2668439a1ce0c9c0af96e54b438087b1c85a0.tar.gz
src-8ad2668439a1ce0c9c0af96e54b438087b1c85a0.zip
Call pam_setcred.
Reviewed by: markm, months ago
Notes
Notes: svn path=/head/; revision=71457
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 967463c63356..c53ba6af475b 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;