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.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to