From c81089072de86601ee489297e631a7d1ce2c4322 Mon Sep 17 00:00:00 2001 From: jbasney Date: Wed, 14 Jul 2004 13:29:57 +0000 Subject: [PATCH] don't include "external-keyx" in case for setting username from GSSAPI context later. if we don't set the username from the GSSAPI context here for "external-keyx", we're not going to do it later either, because the context should already be established from the key exchange. only the "gssapi" userauth methods need to postpone setting the username, as the GSSAPI context hasn't been established yet. --- openssh/auth2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openssh/auth2.c b/openssh/auth2.c index df68b83..9b38bd9 100644 --- a/openssh/auth2.c +++ b/openssh/auth2.c @@ -196,8 +196,7 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt) verify it. */ if ((strcmp(user, "") != 0) || ((strcmp(method, "gssapi") != 0) && - (strcmp(method, "gssapi-with-mic") != 0) && - (strcmp(method, "external-keyx") != 0))) { + (strcmp(method, "gssapi-with-mic") != 0))) { #endif authctxt->pw = PRIVSEP(getpwnamallow(user)); authctxt->user = xstrdup(user); -- 2.45.2