|
Lines 312-317
Link Here
|
| 312 |
#endif |
312 |
#endif |
| 313 |
} |
313 |
} |
| 314 |
|
314 |
|
|
|
315 |
if (authenticated && options.num_auth_methods != 0) { |
| 316 |
if (!auth2_update_methods_lists(authctxt, method)) { |
| 317 |
authenticated = 0; |
| 318 |
partial = 1; |
| 319 |
} |
| 320 |
} |
| 321 |
|
| 315 |
#ifdef USE_PAM |
322 |
#ifdef USE_PAM |
| 316 |
if (options.use_pam && authenticated) { |
323 |
if (options.use_pam && authenticated) { |
| 317 |
if (!PRIVSEP(do_pam_account())) { |
324 |
if (!PRIVSEP(do_pam_account())) { |
|
Lines 335-352
Link Here
|
| 335 |
#endif /* _UNICOS */ |
342 |
#endif /* _UNICOS */ |
| 336 |
|
343 |
|
| 337 |
/* Log before sending the reply */ |
344 |
/* Log before sending the reply */ |
| 338 |
auth_log(authctxt, authenticated, method, " ssh2"); |
345 |
auth_log(authctxt, authenticated | partial, method, " ssh2"); |
| 339 |
|
346 |
|
| 340 |
if (authctxt->postponed) |
347 |
if (authctxt->postponed) |
| 341 |
return; |
348 |
return; |
| 342 |
|
349 |
|
| 343 |
if (authenticated && options.num_auth_methods != 0) { |
|
|
| 344 |
if (!auth2_update_methods_lists(authctxt, method)) { |
| 345 |
authenticated = 0; |
| 346 |
partial = 1; |
| 347 |
} |
| 348 |
} |
| 349 |
|
| 350 |
if (authenticated == 1) { |
350 |
if (authenticated == 1) { |
| 351 |
/* turn off userauth */ |
351 |
/* turn off userauth */ |
| 352 |
dispatch_set(SSH2_MSG_USERAUTH_REQUEST, &dispatch_protocol_ignore); |
352 |
dispatch_set(SSH2_MSG_USERAUTH_REQUEST, &dispatch_protocol_ignore); |
|
Lines 359-365
Link Here
|
| 359 |
|
359 |
|
| 360 |
/* Allow initial try of "none" auth without failure penalty */ |
360 |
/* Allow initial try of "none" auth without failure penalty */ |
| 361 |
if (!authctxt->server_caused_failure && |
361 |
if (!authctxt->server_caused_failure && |
| 362 |
(authctxt->attempt > 1 || strcmp(method, "none") != 0)) |
362 |
(authctxt->attempt > 1 || strcmp(method, "none") != 0) && |
|
|
363 |
!partial) |
| 363 |
authctxt->failures++; |
364 |
authctxt->failures++; |
| 364 |
if (authctxt->failures >= options.max_authtries) { |
365 |
if (authctxt->failures >= options.max_authtries) { |
| 365 |
#ifdef SSH_AUDIT_EVENTS |
366 |
#ifdef SSH_AUDIT_EVENTS |