dovecot-2.0: auth: vpopmail passdb/userdb uses now auth-worker p...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 2 17:39:33 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/5a8533404979
changeset: 12361:5a8533404979
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 02 15:39:28 2010 +0000
description:
auth: vpopmail passdb/userdb uses now auth-worker processes by default.
Adding blocking=no parameter disables this.

diffstat:

 src/auth/passdb-vpopmail.c |  3 +++
 src/auth/userdb-vpopmail.c |  3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (40 lines):

diff -r 2b709ff27b3a -r 5a8533404979 src/auth/passdb-vpopmail.c
--- a/src/auth/passdb-vpopmail.c	Tue Nov 02 15:34:50 2010 +0000
+++ b/src/auth/passdb-vpopmail.c	Tue Nov 02 15:39:28 2010 +0000
@@ -167,6 +167,7 @@
 
 	module = p_new(pool, struct vpopmail_passdb_module, 1);
 	module->module.default_pass_scheme = VPOPMAIL_DEFAULT_PASS_SCHEME;
+	module->module.blocking = TRUE;
 
 	tmp = t_strsplit_spaces(args, " ");
 	for (; *tmp != NULL; tmp++) {
@@ -176,6 +177,8 @@
 		} else if (strncmp(*tmp, "webmail=", 8) == 0) {
 			if (net_addr2ip(*tmp + 8, &module->webmail_ip) < 0)
 				i_fatal("vpopmail: Invalid webmail IP address");
+		} else if (strcmp(*tmp, "blocking=no") == 0) {
+			module->module.blocking = FALSE;
 		} else {
 			i_fatal("passdb vpopmail: Unknown setting: %s", *tmp);
 		}
diff -r 2b709ff27b3a -r 5a8533404979 src/auth/userdb-vpopmail.c
--- a/src/auth/userdb-vpopmail.c	Tue Nov 02 15:34:50 2010 +0000
+++ b/src/auth/userdb-vpopmail.c	Tue Nov 02 15:39:28 2010 +0000
@@ -143,6 +143,7 @@
 	const char *const *tmp, *p;
 
 	module = p_new(pool, struct vpopmail_userdb_module, 1);
+	module->module.blocking = TRUE;
 
 	for (tmp = t_strsplit(args, " "); *tmp != NULL; tmp++) {
 		if (strncmp(*tmp, "cache_key=", 10) == 0)
@@ -156,6 +157,8 @@
 			module->quota_template_key =
 				p_strdup_until(pool, *tmp + 15, p);
 			module->quota_template_value = p_strdup(pool, p + 1);
+		} else if (strcmp(*tmp, "blocking=no") == 0) {
+			module->module.blocking = FALSE;
 		} else
 			i_fatal("userdb vpopmail: Unknown setting: %s", *tmp);
 	}


More information about the dovecot-cvs mailing list