[Dovecot] Help with dovecot+passwd+pam_mysql

Skye Poier skye at f4.ca
Mon Mar 15 23:53:07 EET 2004


Hi again,

I'm on Freebsd 4.x and instead of using the mysql patch, it seems like
it would be easier to just use "auth_passdb = pam *" with the pam_mysql
drop-in.

I'm not really a pam.conf writing expert though.  Here's what it
currently contains (works for /etc/passwd users)

imap    auth    required        pam_unix.so
imap    account required        pam_unix.so try_first_pass
imap    session required        pam_deny.so

How would I set it up so that it first checks to see if the user is in
/etc/passwd (as above) and then checks pam_mysql.so?

Example from the pam_mysql readme:

auth       optional     pam_mysql.so user=root passwd=password
account    required     pam_mysql.so user=root passwd=password

Is anyone else using this setup?  Any disadvantages?

Thanks,
Skye




More information about the dovecot mailing list