password expire warning for dovecot users in IMAP/POP login
Juan Bernhard
juan at inti.gob.ar
Wed Jun 8 13:31:55 UTC 2016
El 08/06/2016 a las 03:37 a.m., mkawada at redhat.com escribió:
> Dear list,
>
> Is it possible to give a notification about password exprire warning to
> users authenticated by OpenLDAP when the users login via dovecot using
> IMAP or POP? For example, when you ssh to a server and/or run
> ldapsearch, you can be warned with password expire warning like below:
>
> # ssh testuser at localhost
> testuser at localhost's password:
> Your password will expire in 31 minute(s). <==
> Last login: Wed Jun 8 12:22:08 2016 from localhost.localdomain
>
> ]$ ldapsearch -LLL -D uid=testuser,ou=People,dc=example,dc=com -w
> redhat "cn=testuser" -e ppolicy
> ldap_bind: Success (0) (Password expires in 1808 seconds) <==
> dn: uid=testuser,ou=People,dc=example,dc=com
>
> Does the same can be done for dovecot users authenticated by OpenLDAP in
> IMAP/POP?
>
>
> Thanks,
>
I think the easiest solution it to send a mail to the user that the
password will expire. A cron job and a shell script should do the work.
I don't know any mechanism to send this kind of message via POP.
Saludos, Juan.
More information about the dovecot
mailing list