Subject: Problems with password verification on a BSD box against PAM
From: Michael Schinhammer <[email-masked]>
To: [email-masked]
Date: Mon, 07 Nov 2011 00:54:28 +0100

Hi ML,

i want to use my local users database on my Freebsd 8.2 box and got the 
following error in the maillog.
The password is ok and it working on the console.
i can establish the ssl connection
after login "a login ux password" the error occures i cant login.

May i have something missing in my configfile - im not sure..
Mike

Nov  6 23:16:26 test dovecot: auth-worker: 
pam([email-masked],213.239.196.158): pam_authenticate() failed: 
authentication error (password mismatch?) (given password: password)
Nov  6 23:16:28 test dovecot: imap-login: Disconnected (auth failed, 1 
attempts): user=<[email-masked]>, method=PLAIN, rip=213.239.196.158, 
lip=178.188.188.123, TLS

test# dovecot -n
# 2.0.15: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 8.2-RELEASE i386
auth_debug_passwords = yes
auth_default_realm = 172.16.0.40
auth_mechanisms = PLAIN login
auth_username_format = %Lu
auth_verbose = yes
base_dir = /var/run/dovecot/
first_valid_uid = 143
last_valid_uid = 65000
login_greeting = Dovecot is ready.
mail_gid = 143
mail_location = maildir:~/Maildir
mail_uid = 143
passdb {
   args = session=yes failure_show_msg=yes dovecot
   driver = pam
}
protocols = imap
service auth {
   user = dovecot
}
ssl_cert = </etc/ca/new.crt
ssl_key = </etc/ca/myca.key
ssl_key_password = secret
userdb {
   driver = passwd
}
verbose_proctitle = yes