changeset 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 d15d5d828d6b
children d1f7b5e17252
files src/auth/userdb-nss.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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