aboutsummaryrefslogtreecommitdiff
path: root/lib/libpam
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2017-03-03 14:06:22 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2017-03-03 14:06:22 +0000
commit886c5814719c66b0f91368e15d0ab765cb9626aa (patch)
tree06d9ed0795df0a63fe00c1f3d15086f6c603a39a /lib/libpam
parent5d1ce10bee2d232114aa38fa7be889374b70639b (diff)
downloadsrc-886c5814719c66b0f91368e15d0ab765cb9626aa.tar.gz
src-886c5814719c66b0f91368e15d0ab765cb9626aa.zip
Load default options before requesting a ticket.
PR: 213909 Reported by: basarevych@gmail.com MFC after: 1 week
Notes
Notes: svn path=/head/; revision=314598
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/modules/pam_krb5/pam_krb5.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libpam/modules/pam_krb5/pam_krb5.c b/lib/libpam/modules/pam_krb5/pam_krb5.c
index 8c72e288315a..810573bed47e 100644
--- a/lib/libpam/modules/pam_krb5/pam_krb5.c
+++ b/lib/libpam/modules/pam_krb5/pam_krb5.c
@@ -239,6 +239,8 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused,
retval = PAM_SERVICE_ERR;
goto cleanup2;
}
+ krb5_get_init_creds_opt_set_default_flags(pam_context,
+ service, NULL, opts);
if (openpam_get_option(pamh, PAM_OPT_FORWARDABLE))
krb5_get_init_creds_opt_set_forwardable(opts, 1);