[dovecot-cvs] dovecot/src/auth passdb-passwd.c, 1.17.2.1, 1.17.2.2 passdb-shadow.c, 1.18.2.1, 1.18.2.2
tss at dovecot.org
tss at dovecot.org
Thu Mar 22 03:36:43 EET 2007
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv29375/src/auth
Modified Files:
Tag: branch_1_0
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.17.2.1
retrieving revision 1.17.2.2
diff -u -d -r1.17.2.1 -r1.17.2.2
--- passdb-passwd.c 10 Mar 2007 13:24:11 -0000 1.17.2.1
+++ passdb-passwd.c 22 Mar 2007 01:36:41 -0000 1.17.2.2
@@ -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.18.2.1
retrieving revision 1.18.2.2
diff -u -d -r1.18.2.1 -r1.18.2.2
--- passdb-shadow.c 10 Mar 2007 13:24:11 -0000 1.18.2.1
+++ passdb-shadow.c 22 Mar 2007 01:36:41 -0000 1.18.2.2
@@ -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