[Dovecot] Expire plugin in chkpw-wrapper.sh script
Jose Luis Marin Perez
jolumape_al at hotmail.com
Fri Oct 16 18:37:10 EEST 2009
Hi timo,
This is the error that comes when adding userdb checkpassword
dovecot: Oct 16 10:13:53 Fatal: auth(default): Unknown userdb driver 'checkpassword' (typo, or Dovecot was built without support for it? Check with dovecot --build-options)
dovecot: Oct 16 10:13:53 Fatal: Auth process died too early - shutting down
Running
dovecot - build-options
Build options: epoll ioloop = notify = dnotify ipv6 openssl
Mail Storage: mbox maildir raw cydir dbox
SQL drivers: mysql
Passdb: vpopmail sql checkpassword
Userdb: vpopmail sql prefetch
Checkpassword not compiled for userdb.
Excuse the dumb question, with that option adding to compile dovecot userdb checkpassword?
No information found about this.
Thanks
Jose Luis
> From: tss at iki.fi
> To: jolumape_al at hotmail.com
> Date: Thu, 15 Oct 2009 21:21:02 -0400
> CC: dovecot at dovecot.org
> Subject: Re: [Dovecot] Expire plugin in chkpw-wrapper.sh script
>
> 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.
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
More information about the dovecot
mailing list