From 5614d8f8c48faf1526e472ef760b1cb116ae069d Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 11 Sep 2004 23:32:09 +1000 Subject: - (dtucker) [auth-krb5.c] Bug #922: Pass KRB5CCNAME to PAM. From deengert at anl.gov, ok djm@ --- auth-krb5.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'auth-krb5.c') diff --git a/auth-krb5.c b/auth-krb5.c index a324ff15..2f742534 100644 --- a/auth-krb5.c +++ b/auth-krb5.c @@ -187,6 +187,11 @@ auth_krb5_password(Authctxt *authctxt, const char *password) snprintf(authctxt->krb5_ccname, len, "FILE:%s", authctxt->krb5_ticket_file); +#ifdef USE_PAM + if (options.use_pam) + do_pam_putenv("KRB5CCNAME", authctxt->krb5_ccname); +#endif + out: restore_uid(); -- cgit v1.2.1