[Dovecot] Expire plugin in chkpw-wrapper.sh script
Timo Sirainen
tss at iki.fi
Fri Oct 16 04:21:02 EEST 2009
On Thu, 2009-10-15 at 14:32 -0500, Jose Luis Marin Perez wrote:
> I'm trying to extend the configuration of vchkpw-wrapper.sh script by adding the expire plugin as follows:
..
> /usr/local/sbin/dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-tool --test
The problem is that vchkpw-wrapper.sh is now run only when user is
authenticating. expire-tool doesn't authenticate, it only does userdb
lookup. So you'll need to have the script run for userdb lookups too:
passdb checkpassword {
..
}
userdb prefetch {
}
userdb checkpassword {
args = /usr/local/bin/userdb.sh
}
Then create /usr/local/bin/userdb.sh which does more or less what the
vchkpw-wrapper.sh does, except since it doesn't call vchkpw itself,
it'll need to get the username from $USER instead of $VPOPUSER.
http://wiki.dovecot.org/AuthDatabase/CheckPassword#Checkpassword_as_userdb explains this extension.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20091015/8a64fd4a/attachment.bin
More information about the dovecot
mailing list