Mercurial > dovecot > original-hg > dovecot-1.2
diff src/auth/passdb-shadow.c @ 5381:ba8da13e71da HEAD
Added blocking=yes setting for passdb passwd and shadow also.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 22 Mar 2007 03:36:44 +0200 |
parents | 228eacfb2647 |
children | 088b4934a8f0 |
line wrap: on
line diff
--- a/src/auth/passdb-shadow.c Thu Mar 22 02:06:24 2007 +0200 +++ b/src/auth/passdb-shadow.c Thu Mar 22 03:36:44 2007 +0200 @@ -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; }