Mercurial > dovecot > core-2.2
diff src/auth/userdb-nss.c @ 11549:7b497f801178 HEAD
userdb nss: Default to blocking=yes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 14 Jun 2010 21:49:27 +0100 |
parents | 3d085b851db8 |
children | 447bce266022 |
line wrap: on
line diff
--- a/src/auth/userdb-nss.c Mon Jun 14 21:04:40 2010 +0100 +++ b/src/auth/userdb-nss.c Mon Jun 14 21:49:27 2010 +0100 @@ -109,10 +109,11 @@ 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