From 58fcce14478d26bb3d9886d4d9b02fbc33bf8216 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 15 May 2011 15:52:04 +0200 Subject: [PATCH] call gssapi_set_username() for keyex method too --- auth2-gss.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth2-gss.c b/auth2-gss.c index 2c77718..3967961 100644 --- a/auth2-gss.c +++ b/auth2-gss.c @@ -51,6 +51,7 @@ static void input_gssapi_token(int type, u_int32_t plen, void *ctxt); static void input_gssapi_mic(int type, u_int32_t plen, void *ctxt); static void input_gssapi_exchange_complete(int type, u_int32_t plen, void *ctxt); static void input_gssapi_errtok(int, u_int32_t, void *); +static void gssapi_set_username(Authctxt *authctxt); /* * The 'gssapi_keyex' userauth mechanism. @@ -74,6 +75,8 @@ userauth_gsskeyex(Authctxt *authctxt) gssbuf.value = buffer_ptr(&b); gssbuf.length = buffer_len(&b); + gssapi_set_username(authctxt); + /* gss_kex_context is NULL with privsep, so we can't check it here */ if (!GSS_ERROR(PRIVSEP(ssh_gssapi_checkmic(gss_kex_context, &gssbuf, &mic)))) -- 2.1.4