[dovecot-cvs] dovecot/src/auth passdb-passwd.c, 1.19, 1.20 passdb-shadow.c, 1.20, 1.21

tss at dovecot.org tss at dovecot.org
Thu Mar 22 03:36:49 EET 2007


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv29371/src/auth

Modified Files:
	passdb-passwd.c passdb-shadow.c 
Log Message:
Added blocking=yes setting for passdb passwd and shadow also.



Index: passdb-passwd.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-passwd.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- passdb-passwd.c	10 Mar 2007 13:24:15 -0000	1.19
+++ passdb-passwd.c	22 Mar 2007 01:36:45 -0000	1.20
@@ -58,9 +58,11 @@
 	callback(PASSDB_RESULT_OK, request);
 }
 
-static void passwd_init(struct passdb_module *module,
-			const char *args __attr_unused__)
+static void passwd_init(struct passdb_module *module, const char *args)
 {
+	if (strcmp(args, "blocking=yes") == 0)
+		module->blocking = TRUE;
+
 	module->cache_key = PASSWD_CACHE_KEY;
 	module->default_pass_scheme = PASSWD_PASS_SCHEME;
 }

Index: passdb-shadow.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-shadow.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- passdb-shadow.c	10 Mar 2007 13:24:15 -0000	1.20
+++ passdb-shadow.c	22 Mar 2007 01:36:45 -0000	1.21
@@ -58,9 +58,11 @@
 	callback(PASSDB_RESULT_OK, request);
 }
 
-static void shadow_init(struct passdb_module *module,
-			const char *args __attr_unused__)
+static void shadow_init(struct passdb_module *module, const char *args)
 {
+	if (strcmp(args, "blocking=yes") == 0)
+		module->blocking = TRUE;
+
 	module->cache_key = SHADOW_CACHE_KEY;
 	module->default_pass_scheme = SHADOW_PASS_SCHEME;
 }



More information about the dovecot-cvs mailing list