Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2017 14:06:22 +0000 (UTC)
From:      =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314598 - head/lib/libpam/modules/pam_krb5
Message-ID:  <201703031406.v23E6MQv004528@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Fri Mar  3 14:06:22 2017
New Revision: 314598
URL: https://svnweb.freebsd.org/changeset/base/314598

Log:
  Load default options before requesting a ticket.
  
  PR:		213909
  Reported by:	basarevych@gmail.com
  MFC after:	1 week

Modified:
  head/lib/libpam/modules/pam_krb5/pam_krb5.c

Modified: head/lib/libpam/modules/pam_krb5/pam_krb5.c
==============================================================================
--- head/lib/libpam/modules/pam_krb5/pam_krb5.c	Fri Mar  3 13:32:01 2017	(r314597)
+++ head/lib/libpam/modules/pam_krb5/pam_krb5.c	Fri Mar  3 14:06:22 2017	(r314598)
@@ -239,6 +239,8 @@ pam_sm_authenticate(pam_handle_t *pamh, 
 		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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703031406.v23E6MQv004528>