dovecot-2.0: login: Skip auth penalty checks from IPs in login_t...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 4 18:52:19 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/73cad87e2045
changeset: 12644:73cad87e2045
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 04 18:52:17 2011 +0200
description:
login: Skip auth penalty checks from IPs in login_trusted_networks.

diffstat:

 src/login-common/sasl-server.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r bf6749d4db08 -r 73cad87e2045 src/login-common/sasl-server.c
--- a/src/login-common/sasl-server.c	Fri Mar 04 18:51:46 2011 +0200
+++ b/src/login-common/sasl-server.c	Fri Mar 04 18:52:17 2011 +0200
@@ -67,6 +67,10 @@
 		auth_flags |= AUTH_REQUEST_FLAG_VALID_CLIENT_CERT;
 	if (client->secured)
 		auth_flags |= AUTH_REQUEST_FLAG_SECURED;
+	if (client->trusted) {
+		/* e.g. webmail */
+		auth_flags |= AUTH_REQUEST_FLAG_NO_PENALTY;
+	}
 	return auth_flags;
 }
 


More information about the dovecot-cvs mailing list