Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5122:419b206fd10c HEAD
Added blocking=yes setting to userdb passwd.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 12 Feb 2007 23:48:35 +0200 |
parents | cf996f8e9c89 |
children | 2d21b5020994 |
files | dovecot-example.conf src/auth/userdb-passwd.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dovecot-example.conf Mon Feb 12 23:41:07 2007 +0200 +++ b/dovecot-example.conf Mon Feb 12 23:48:35 2007 +0200 @@ -819,6 +819,10 @@ # configured in /etc/nsswitch.conf. # http://wiki.dovecot.org/AuthDatabase/Passwd #passdb passwd { + # [blocking=yes] - By default the lookups are done in the main dovecot-auth + # process. This setting causes the lookups to be done in auth worker + # proceses. Useful with remote NSS lookups that may block. + #args = #} # /etc/shadow or similiar, using getspnam(). Deprecated by PAM nowadays.
--- a/src/auth/userdb-passwd.c Mon Feb 12 23:41:07 2007 +0200 +++ b/src/auth/userdb-passwd.c Mon Feb 12 23:48:35 2007 +0200 @@ -42,8 +42,10 @@ } static void passwd_passwd_init(struct userdb_module *module, - const char *args __attr_unused__) + const char *args) { + if (strcmp(args, "blocking=yes") == 0) + module->blocking = TRUE; module->cache_key = USER_CACHE_KEY; }