|
Lines 199-204
Link Here
|
| 199 |
#endif |
199 |
#endif |
| 200 |
|
200 |
|
| 201 |
authctxt->postponed = 0; |
201 |
authctxt->postponed = 0; |
|
|
202 |
authctxt->server_caused_failure = 0; |
| 202 |
|
203 |
|
| 203 |
/* try to authenticate user */ |
204 |
/* try to authenticate user */ |
| 204 |
m = authmethod_lookup(method); |
205 |
m = authmethod_lookup(method); |
|
Lines 269-275
Link Here
|
| 269 |
/* now we can break out */ |
270 |
/* now we can break out */ |
| 270 |
authctxt->success = 1; |
271 |
authctxt->success = 1; |
| 271 |
} else { |
272 |
} else { |
| 272 |
if (authctxt->failures++ > options.max_authtries) { |
273 |
/* Dont count server configuration issues against the client */ |
|
|
274 |
if (!authctxt->server_caused_failure && |
| 275 |
authctxt->failures++ > options.max_authtries) { |
| 273 |
#ifdef SSH_AUDIT_EVENTS |
276 |
#ifdef SSH_AUDIT_EVENTS |
| 274 |
PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES)); |
277 |
PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES)); |
| 275 |
#endif |
278 |
#endif |