[Dovecot] POP3 notice if password expired

Vaidas Pilkauskas vaidas.pilkauskas at sc.vu.lt
Mon Jun 12 09:54:56 EEST 2006


On Sun, Jun 11, 2006 at 03:52:24PM +0300, Timo Sirainen wrote:
> 
> See if this patch works:
> 
> http://dovecot.org/list/dovecot-cvs/2006-June/005697.html

After applying the patch I still get:

-ERR Authentication failed.

Log:
dovecot: Jun 12 09:28:55 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:28:55 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:28:56 Info: auth(default): client out: FAIL  1
user=liucijus

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

Any ideas?




More information about the dovecot mailing list