diff options
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -10,7 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "includes.h" | 12 | #include "includes.h" |
13 | RCSID("$OpenBSD: auth1.c,v 1.39 2002/03/19 14:27:39 markus Exp $"); | 13 | RCSID("$OpenBSD: auth1.c,v 1.40 2002/04/10 08:21:47 markus Exp $"); |
14 | 14 | ||
15 | #include "xmalloc.h" | 15 | #include "xmalloc.h" |
16 | #include "rsa.h" | 16 | #include "rsa.h" |
@@ -345,7 +345,7 @@ do_authentication(void) | |||
345 | { | 345 | { |
346 | Authctxt *authctxt; | 346 | Authctxt *authctxt; |
347 | u_int ulen; | 347 | u_int ulen; |
348 | char *p, *user, *style = NULL; | 348 | char *user, *style = NULL; |
349 | 349 | ||
350 | /* Get the name of the user that we wish to log in as. */ | 350 | /* Get the name of the user that we wish to log in as. */ |
351 | packet_read_expect(SSH_CMSG_USER); | 351 | packet_read_expect(SSH_CMSG_USER); |
@@ -357,9 +357,15 @@ do_authentication(void) | |||
357 | if ((style = strchr(user, ':')) != NULL) | 357 | if ((style = strchr(user, ':')) != NULL) |
358 | *style++ = '\0'; | 358 | *style++ = '\0'; |
359 | 359 | ||
360 | #ifdef KRB5 | ||
360 | /* XXX - SSH.com Kerberos v5 braindeath. */ | 361 | /* XXX - SSH.com Kerberos v5 braindeath. */ |
361 | if ((p = strchr(user, '@')) != NULL) | 362 | if ((datafellows & SSH_BUG_K5USER) && |
362 | *p = '\0'; | 363 | options.kerberos_authentication) { |
364 | char *p; | ||
365 | if ((p = strchr(user, '@')) != NULL) | ||
366 | *p = '\0'; | ||
367 | } | ||
368 | #endif | ||
363 | 369 | ||
364 | authctxt = authctxt_new(); | 370 | authctxt = authctxt_new(); |
365 | authctxt->user = user; | 371 | authctxt->user = user; |