On Sun, Jun 11, 2006 at 03:52:24PM +0300, Timo Sirainen wrote:
See if this patch works:
The problem is that dovecot should handle PAM_NEW_AUTHTOK_REQD not PAM_ACCT_EXPIRED in auth/passdb_pam.c function pam_verify_plain_child
I changed PAM_CCT_EXPIRED to PAM_NEW_AUTHTOK_REQD and got another problem:
-ERR Temporary authentication failure.
Log: dovecot: Jun 12 09:17:13 Info: auth(default): client in: AUTH 1 PLAIN service=POP3 secured lip=127.0.0.1 rip=127.0.0.1 resp=<hidden> dovecot: Jun 12 09:17:13 Info: auth(default): pam(liucijus,127.0.0.1): pam_acct_mgmt() failed: Authentication token is no longer valid; new one required. dovecot: Jun 12 09:17:13 Error: child 12085 (auth) killed with signal 11
Found what caused problem. Patches attached.