diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-09-11 23:32:09 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-09-11 23:32:09 +1000 |
commit | 5614d8f8c48faf1526e472ef760b1cb116ae069d (patch) | |
tree | 70d707b5fefcc3902b9ff32438d89841e09668e8 /auth-krb5.c | |
parent | a0c2b394b4e6d881bb70ab25c77d25922e07fd40 (diff) |
- (dtucker) [auth-krb5.c] Bug #922: Pass KRB5CCNAME to PAM. From deengert
at anl.gov, ok djm@
Diffstat (limited to 'auth-krb5.c')
-rw-r--r-- | auth-krb5.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/auth-krb5.c b/auth-krb5.c index a324ff15c..2f742534a 100644 --- a/auth-krb5.c +++ b/auth-krb5.c | |||
@@ -187,6 +187,11 @@ auth_krb5_password(Authctxt *authctxt, const char *password) | |||
187 | snprintf(authctxt->krb5_ccname, len, "FILE:%s", | 187 | snprintf(authctxt->krb5_ccname, len, "FILE:%s", |
188 | authctxt->krb5_ticket_file); | 188 | authctxt->krb5_ticket_file); |
189 | 189 | ||
190 | #ifdef USE_PAM | ||
191 | if (options.use_pam) | ||
192 | do_pam_putenv("KRB5CCNAME", authctxt->krb5_ccname); | ||
193 | #endif | ||
194 | |||
190 | out: | 195 | out: |
191 | restore_uid(); | 196 | restore_uid(); |
192 | 197 | ||