[Dovecot] Checkpassword interface for custom password check and home mounting
Jouko Nikula
jonikula at gmail.com
Mon Nov 25 05:50:41 EET 2013
Hi,
I'm trying to use the checkpassword interface to do a password check
and if the check succeeds I mount the user home directory (including
mail) using the users login password and uid.
Things work well if I do the mount manually, but when I add the home
directory mounting to checkpassword things seem to stop. Dovecot logs
the result of the password check, but doesn't send the result to
client.
Here's the log:
Nov 25 10:32:05 jlaptop dovecot: auth: Debug: Loading modules from
directory: /usr/lib/dovecot/modules/auth
Nov 25 10:32:05 jlaptop dovecot: auth: Debug: auth client connected (pid=27551)
Nov 25 10:32:05 jlaptop dovecot: auth: Debug: client in:
AUTH#0111#011PLAIN#011service=imap#011secured#011session=8HsMAvjrvgB/AAAB#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=39614
Nov 25 10:32:05 jlaptop dovecot: auth: Debug: client out: CONT#0111#011
Nov 25 10:32:05 jlaptop dovecot: auth: Debug: client in: CONT<hidden>
Nov 25 10:32:05 jlaptop dovecot: auth: Debug:
checkpassword(jouko.nikula,127.0.0.1,<8HsMAvjrvgB/AAAB>): execute:
/usr/sbin/gpgfusemount /usr/lib/dovecot/checkpassword-reply
Nov 25 10:32:05 jlaptop dovecot: auth: Debug:
checkpassword(jouko.nikula,127.0.0.1,<8HsMAvjrvgB/AAAB>):
exit_status=0
My dovecot version is 2.1.7. My checkpassword is a setuid binary and
the mount is a self made fuse-fs.
Any ideas what happens? Are there better ways to do this?
Thanks,
- Jouko
More information about the dovecot
mailing list