diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -349,13 +349,6 @@ userauth_finish(struct ssh *ssh, int authenticated, const char *method, | |||
349 | } | 349 | } |
350 | #endif | 350 | #endif |
351 | 351 | ||
352 | #ifdef _UNICOS | ||
353 | if (authenticated && cray_access_denied(authctxt->user)) { | ||
354 | authenticated = 0; | ||
355 | fatal("Access denied for user %s.", authctxt->user); | ||
356 | } | ||
357 | #endif /* _UNICOS */ | ||
358 | |||
359 | if (authenticated == 1) { | 352 | if (authenticated == 1) { |
360 | /* turn off userauth */ | 353 | /* turn off userauth */ |
361 | ssh_dispatch_set(ssh, SSH2_MSG_USERAUTH_REQUEST, &dispatch_protocol_ignore); | 354 | ssh_dispatch_set(ssh, SSH2_MSG_USERAUTH_REQUEST, &dispatch_protocol_ignore); |
@@ -366,7 +359,6 @@ userauth_finish(struct ssh *ssh, int authenticated, const char *method, | |||
366 | authctxt->success = 1; | 359 | authctxt->success = 1; |
367 | ssh_packet_set_log_preamble(ssh, "user %s", authctxt->user); | 360 | ssh_packet_set_log_preamble(ssh, "user %s", authctxt->user); |
368 | } else { | 361 | } else { |
369 | |||
370 | /* Allow initial try of "none" auth without failure penalty */ | 362 | /* Allow initial try of "none" auth without failure penalty */ |
371 | if (!partial && !authctxt->server_caused_failure && | 363 | if (!partial && !authctxt->server_caused_failure && |
372 | (authctxt->attempt > 1 || strcmp(method, "none") != 0)) | 364 | (authctxt->attempt > 1 || strcmp(method, "none") != 0)) |