[Dovecot] Checkpassword interface for custom password check and home mounting
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.
My password check seems to work, but when I add the home directory mounting things seem to stop. Dovecot never logs the result of the password check and nothing happens until the client gets bored and tries again. I added trace to the dovecot's checkpassword-reply and I see that it's really executed, it writes the reply and returns 0 for successful authentication.
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
On Mon, Nov 25, 2013 at 09:36:39AM +0700, Jouko Nikula wrote:
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.
May I ask why you mount the user directory? Couldn't it just be already mounted and you simply use the PAM interface?
passdb {
driver = pam
}
userdb {
driver = passwd
}
On Mon, Nov 25, 2013 at 10:57 AM, Kai Hendry hendry@dabase.com wrote:
May I ask why you mount the user directory? Couldn't it just be already mounted and you simply use the PAM interface?
First of all, sorry about the double post. Yes I believe I could use the PAM interface. It looks more suitable to this. I will look into it. Thanks for pointing me to right direction!
participants (2)
-
Jouko Nikula
-
Kai Hendry