From 9c870f966a747fc04c69f5203261ee8b936fabd5 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 16 Apr 2004 22:47:55 +1000 Subject: - (djm) [auth-krb5.c auth.h session.c] Explicitly refer to Kerberos ccache file using FILE: method, fixes problems on Mac OSX. Patch from simon@sxw.org.uk; ok dtucker@ --- auth-krb5.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'auth-krb5.c') diff --git a/auth-krb5.c b/auth-krb5.c index baa1a6317..a728ebac1 100644 --- a/auth-krb5.c +++ b/auth-krb5.c @@ -72,6 +72,7 @@ auth_krb5_password(Authctxt *authctxt, const char *password) #endif krb5_error_code problem; krb5_ccache ccache = NULL; + int len; if (!authctxt->valid) return (0); @@ -177,6 +178,11 @@ auth_krb5_password(Authctxt *authctxt, const char *password) authctxt->krb5_ticket_file = (char *)krb5_cc_get_name(authctxt->krb5_ctx, authctxt->krb5_fwd_ccache); + len = strlen(authctxt->krb5_ticket_file) + 6; + authctxt->krb5_ccname = xmalloc(len); + snprintf(authctxt->krb5_ccname, len, "FILE:%s", + authctxt->krb5_ticket_file); + out: restore_uid(); -- cgit v1.2.3