List of accounts with their last password change date
List of accounts with their last password change date
- This article is a Work in Progress, and may be unfinished or missing sections.
Purpose
CLI method for extracting a list of all accounts with their last password change date.
Resolution
You can use the 'zmprov sa' for this:
- First get a list of all the users of the domain along with all of their attributes:
zmprov sa -v "mail=*@example.com"
- Then filter out the 'zimbraPasswordModifiedTime', like so:
zmprov sa -v "mail=*@example.com" | egrep '^mail:|zimbraPasswordModifiedTime:|^$'
The password modified time is in the format: year, month, date, hours, minutes and seconds: yyyyMMddHHmmssZ
Example of the output:
mail: admin@zimbra.io mail: root@zimbra.io mail: postmaster@zimbra.io zimbraPasswordModifiedTime: 20150622194134Z mail: galsync.h3ysynioki@zimbra.io mail: ham.elwn5rkk@zimbra.io zimbraPasswordModifiedTime: 20150622194207Z mail: spam.yre5n_qvpy@zimbra.io zimbraPasswordModifiedTime: 20150622194157Z mail: virus-quarantine.qqigazmyak@zimbra.io zimbraPasswordModifiedTime: 20150622194220Z
Additional Content
- No related content.