From 9811342c9c743b42bb420383f3a0824cb3f46510 Mon Sep 17 00:00:00 2001 From: kouril Date: Tue, 12 Aug 2003 09:36:42 +0000 Subject: [PATCH] Since we're going to support mainly Kerberos GSSAPI, gss context is not kept across multiple request. --- src/mod_auth_kerb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mod_auth_kerb.c b/src/mod_auth_kerb.c index 7675836..71c62c4 100644 --- a/src/mod_auth_kerb.c +++ b/src/mod_auth_kerb.c @@ -643,6 +643,8 @@ cleanup_gss_connection(void *data) if (gss_conn->server_creds != GSS_C_NO_CREDENTIAL) gss_release_cred(&minor_status, &gss_conn->server_creds); + gss_connection = NULL; + return OK; } @@ -863,7 +865,6 @@ authenticate_user_gss(request_rec *r, gss_release_buffer(&minor_status, &output_token); - #if 0 /* If the user comes from a realm specified by configuration don't include its realm name in the username so that the authorization routine could @@ -897,6 +898,8 @@ end: if (client_name != GSS_C_NO_NAME) gss_release_name(&minor_status, &client_name); + cleanup_gss_connection(gss_connection); + initial_return = ret; return ret; } -- 2.1.4