From da6247064a1c5f3364c9c414d4da4f771a31ccbd Mon Sep 17 00:00:00 2001 From: basney Date: Mon, 28 Sep 2009 14:49:05 +0000 Subject: [PATCH] patch from matthieu hautreux for cascading credentials https://bugzilla.mcs.anl.gov/globus/show_bug.cgi?id=6785 --- openssh/gss-serv-gsi.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openssh/gss-serv-gsi.c b/openssh/gss-serv-gsi.c index e77db62..1a0c3f9 100644 --- a/openssh/gss-serv-gsi.c +++ b/openssh/gss-serv-gsi.c @@ -49,6 +49,8 @@ extern ServerOptions options; static int ssh_gssapi_gsi_userok(ssh_gssapi_client *client, char *name); static int ssh_gssapi_gsi_localname(ssh_gssapi_client *client, char **user); static void ssh_gssapi_gsi_storecreds(ssh_gssapi_client *client); +static void ssh_gssapi_gsi_updatecreds(ssh_gssapi_ccache *store, + ssh_gssapi_client *client); ssh_gssapi_mech gssapi_gsi_mech = { "dZuIebMjgUqaxvbF7hDbAw==", @@ -58,7 +60,7 @@ ssh_gssapi_mech gssapi_gsi_mech = { &ssh_gssapi_gsi_userok, &ssh_gssapi_gsi_localname, &ssh_gssapi_gsi_storecreds, - NULL + &ssh_gssapi_gsi_updatecreds }; /* @@ -222,5 +224,14 @@ ssh_gssapi_gsi_storecreds(ssh_gssapi_client *client) gss_release_buffer(&minor_status, &export_cred); } +/* + * Export updated GSI credential to disk. + */ +static void +ssh_gssapi_gsi_updatecreds(ssh_gssapi_ccache *store,ssh_gssapi_client *client) +{ + ssh_gssapi_gsi_storecreds(client); +} + #endif /* GSI */ #endif /* GSSAPI */ -- 2.45.1