don't consider a partial success as a failure
This commit is contained in:
parent
a1fe096ff3
commit
2ab5418106
|
@ -0,0 +1,16 @@
|
|||
diff --git a/auth2.c b/auth2.c
|
||||
index 06b672c..8cb9a97 100644
|
||||
--- a/auth2.c
|
||||
+++ b/auth2.c
|
||||
@@ -377,8 +377,9 @@ userauth_finish(Authctxt *authctxt, int authenticated, const char *method,
|
||||
authctxt->success = 1;
|
||||
} else {
|
||||
|
||||
- /* Allow initial try of "none" auth without failure penalty */
|
||||
- if (!authctxt->server_caused_failure &&
|
||||
+ /* Allow initial try of "none" auth without failure penalty
|
||||
+ * Partial succes is not failure */
|
||||
+ if (!authctxt->server_caused_failure && !partial &&
|
||||
(authctxt->attempt > 1 || strcmp(method, "none") != 0))
|
||||
authctxt->failures++;
|
||||
if (authctxt->failures >= options.max_authtries) {
|
|
@ -204,6 +204,9 @@ Patch911: openssh-6.4p1-set_remote_ipaddr.patch
|
|||
# https://bugzilla.mindrot.org/show_bug.cgi?id=2058
|
||||
# slightly changed patch from comment 10
|
||||
Patch912: openssh-6.4p1-utf8-banner.patch
|
||||
# don't consider a partial success as a failure
|
||||
# https://bugzilla.mindrot.org/show_bug.cgi?id=2270
|
||||
Patch913: openssh-6.4p1-partial-success.patch
|
||||
|
||||
License: BSD
|
||||
Group: Applications/Internet
|
||||
|
@ -434,6 +437,7 @@ popd
|
|||
%patch910 -p1 -b .NI_MAXHOST
|
||||
%patch911 -p1 -b .set_remote_ipaddr
|
||||
%patch912 -p1 -b .utf8-banner
|
||||
%patch913 -p1 -b .partial-success
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue