summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--gss-serv-krb5.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c1018b10e..1497e6532 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
5 [sftp-client.c sftp-client.h sftp-glob.c sftp-glob.h sftp-int.c] 5 [sftp-client.c sftp-client.h sftp-glob.c sftp-glob.h sftp-int.c]
6 [sftp-int.h sftp.c] 6 [sftp-int.h sftp.c]
7 switch to license.template for code written by me (belated, I know...) 7 switch to license.template for code written by me (belated, I know...)
8 - (djm) Bug #698: Specify FILE: for KRB5CCNAME; patch from
9 stadal@suse.cz and simon@sxw.org.uk
8 10
920040212 1120040212
10 - (tim) [Makefile.in regress/sftp-badcmds.sh regress/test-exec.sh] 12 - (tim) [Makefile.in regress/sftp-badcmds.sh regress/test-exec.sh]
@@ -1860,4 +1862,4 @@
1860 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 1862 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
1861 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 1863 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
1862 1864
1863$Id: ChangeLog,v 1.3230 2004/02/17 06:07:59 djm Exp $ 1865$Id: ChangeLog,v 1.3231 2004/02/17 09:33:52 djm Exp $
diff --git a/gss-serv-krb5.c b/gss-serv-krb5.c
index e358bcbdc..7373beb6d 100644
--- a/gss-serv-krb5.c
+++ b/gss-serv-krb5.c
@@ -108,6 +108,7 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client)
108 krb5_error_code problem; 108 krb5_error_code problem;
109 krb5_principal princ; 109 krb5_principal princ;
110 OM_uint32 maj_status, min_status; 110 OM_uint32 maj_status, min_status;
111 int len;
111 112
112 if (client->creds == NULL) { 113 if (client->creds == NULL) {
113 debug("No credentials stored"); 114 debug("No credentials stored");
@@ -178,11 +179,13 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client)
178 179
179 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); 180 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache));
180 client->store.envvar = "KRB5CCNAME"; 181 client->store.envvar = "KRB5CCNAME";
181 client->store.envval = xstrdup(client->store.filename); 182 len = strlen(client->store.filename) + 6;
183 client->store.envval = xmalloc(len);
184 snprintf(client->store.envval, len, "FILE:%s", client->store.filename);
182 185
183#ifdef USE_PAM 186#ifdef USE_PAM
184 if (options.use_pam) 187 if (options.use_pam)
185 do_pam_putenv(client->store.envvar,client->store.envval); 188 do_pam_putenv(client->store.envvar, client->store.envval);
186#endif 189#endif
187 190
188 krb5_cc_close(krb_context, ccache); 191 krb5_cc_close(krb_context, ccache);