diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-05-24 10:36:23 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-05-24 10:36:23 +1000 |
commit | 89413dbafa5a5f237ba1040b74e6437b8b1ff1e0 (patch) | |
tree | 0436722462ae48880fa96b00d31f45caa6bf4ea5 /auth.c | |
parent | e534e1212703c04906d3ab00ba768f3a45bd2370 (diff) |
- dtucker@cvs.openbsd.org 2004/05/23 23:59:53
[auth.c auth.h auth1.c auth2.c servconf.c servconf.h sshd_config sshd_config.5]
Add MaxAuthTries sshd config option; ok markus@
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth.c,v 1.53 2004/05/11 19:01:43 deraadt Exp $"); | 26 | RCSID("$OpenBSD: auth.c,v 1.54 2004/05/23 23:59:53 dtucker Exp $"); |
27 | 27 | ||
28 | #ifdef HAVE_LOGIN_H | 28 | #ifdef HAVE_LOGIN_H |
29 | #include <login.h> | 29 | #include <login.h> |
@@ -242,7 +242,7 @@ auth_log(Authctxt *authctxt, int authenticated, char *method, char *info) | |||
242 | /* Raise logging level */ | 242 | /* Raise logging level */ |
243 | if (authenticated == 1 || | 243 | if (authenticated == 1 || |
244 | !authctxt->valid || | 244 | !authctxt->valid || |
245 | authctxt->failures >= AUTH_FAIL_LOG || | 245 | authctxt->failures >= options.max_authtries / 2 || |
246 | strcmp(method, "password") == 0) | 246 | strcmp(method, "password") == 0) |
247 | authlog = logit; | 247 | authlog = logit; |
248 | 248 | ||