]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: vpopmail passdb/userdb uses now auth-worker processes by default.
authorTimo Sirainen <tss@iki.fi>
Tue, 2 Nov 2010 15:39:28 +0000 (15:39 +0000)
committerTimo Sirainen <tss@iki.fi>
Tue, 2 Nov 2010 15:39:28 +0000 (15:39 +0000)
Adding blocking=no parameter disables this.

src/auth/passdb-vpopmail.c
src/auth/userdb-vpopmail.c

index 94bcae2c820e12ea128ce8fa0ec55064213138c4..ec56f25aa47b0177618cb00182333b82ac350c88 100644 (file)
@@ -167,6 +167,7 @@ vpopmail_preinit(pool_t pool, const char *args)
 
        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 @@ vpopmail_preinit(pool_t pool, const char *args)
                } 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);
                }
index 9aeada287e10324b9e406c27fcae465cb4e00a5c..6333eef32816d7da0d723658dfcfc48382a60f90 100644 (file)
@@ -143,6 +143,7 @@ vpopmail_preinit(pool_t pool, const char *args)
        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 @@ vpopmail_preinit(pool_t pool, const char *args)
                        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);
        }