]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
userdb nss: Default to blocking=yes.
authorTimo Sirainen <tss@iki.fi>
Mon, 14 Jun 2010 20:49:27 +0000 (21:49 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 14 Jun 2010 20:49:27 +0000 (21:49 +0100)
--HG--
branch : HEAD

src/auth/userdb-nss.c

index 04e3fdc4c92379e53a5e03fe72e4067443eb6909..1cab74cc86ae627d787de64e56c29e730002c8b8 100644 (file)
@@ -109,10 +109,11 @@ userdb_nss_preinit(pool_t pool, const char *args)
        module = p_new(pool, struct nss_userdb_module, 1);
        module->bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);
        module->buf = p_malloc(pool, module->bufsize);
+       module->module.blocking = TRUE;
 
        for (tmp = t_strsplit(args, " "); *tmp != NULL; tmp++) {
-               if (strcmp(*tmp, "blocking=yes") == 0)
-                       module->module.blocking = TRUE;
+               if (strcmp(*tmp, "blocking=no") == 0)
+                       module->module.blocking = FALSE;
                else if (strncmp(*tmp, "service=", 8) == 0)
                        module->nss_module.name = p_strdup(pool, *tmp + 8);
                else