After some research I see that I would like to use Name Service Switch with dovecot for authentication. My /etc/nsswitch.conf is up and running. In my dovecot.conf, there is this section of code:
Code:
# System users (NSS, /etc/passwd, or similiar)
# In many systems nowadays this uses Name Service Switch, which is
# configured in /etc/nsswitch.conf. <doc/wiki/AuthDatabase.Passwd.txt>
passdb passwd {
# [blocking=yes] - See userdb passwd for explanation
args =
}
I removed the comments before 'passdb password {' and the '}'. However, when I start up dovecot, I get this error.
Code:
Warning: There is no way to login to this server: disable_plaintext_auth=yes, ssl=no, no non-plaintext auth mechanisms.
Warning: There is no way to login to this server: disable_plaintext_auth=yes, ssl=no, no non-plaintext auth mechanisms.
So I uncommented the line
disable_plaintext_auth=no
Now dovecot runs without errors. However, when I netcat into port 110, I get this:
Code:
+OK Dovecot ready.
user john
+OK
pass candy
-ERR [IN-USE] Temporary authentication failure.
This username and password are the ones in my /etc/passwd file is used by nss.
Can anybody point me in the right direction.