When "no_ccache" is set as an argument to the pam_krb5 module, don't

copy the acquired TGT from the in-memory cache to the on-disk cache
at login.  This was documented but un-implemented behavior.

MFC after:		1 week
PR:			bin/64464
Reported and tested by:	Eric van Gyzen <vangyzen at stat dot duke dot edu>
This commit is contained in:
rwatson 2005-01-24 16:49:50 +00:00
parent ea8b6fd707
commit bfb05d046d

View File

@ -362,6 +362,10 @@ pam_sm_setcred(pam_handle_t *pamh, int flags,
if (!(flags & PAM_ESTABLISH_CRED))
return (PAM_SERVICE_ERR);
/* If a persistent cache isn't desired, stop now. */
if (openpam_get_option(pamh, PAM_OPT_NO_CCACHE))
return (PAM_SUCCESS);
PAM_LOG("Establishing credentials");
/* Get username */