On 7.7.2004, at 20:39, Steve Johnson wrote:
We currently have a postfix/dovecot setup using nss_ldap with PAM for authentication. Everything is working fine, but there are excessive "error" messages in /var/log/messages that I'd like to prevent from happening.
Since auth_userdb defaults to passwd and that our users are not in the passwd file, we get the following message everytime a user logs in:
passwd userdb actually uses NSS (or getpwnam() which uses it) and not /etc/passwd directly.
Jul 7 13:34:37 hostname dovecot(pam_unix)[32206]: check pass; user unknown Jul 7 13:34:37 hostname dovecot(pam_unix)[32206]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
That's written by pam_unix PAM module, not Dovecot. Do you have both pam_unix and pam_ldap in /etc/pam.d/dovecot? Remove the pam_unix.so lines from there.