List of accounts with their last password change date: Difference between revisions
m (→Purpose) |
m (cleanup domain in example output) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{BC|Certified}} | ||
__FORCETOC__ | |||
<div class="col-md-12 ibox-content"> | |||
=List of accounts with their last password change date= | =List of accounts with their last password change date= | ||
{{KB|{{ZC}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}|}} | |||
{{WIP}} | |||
==Purpose== | ==Purpose== | ||
CLI method for extracting a list of all accounts with their last password change date. | CLI method for extracting a list of all accounts with their last password change date. | ||
Line 14: | Line 19: | ||
The password modified time is in the format: | The password modified time is in the format: | ||
year, month, date, hours, minutes and seconds: '''yyyyMMddHHmmssZ''' | year, month, date, hours, minutes and seconds: '''yyyyMMddHHmmssZ''' | ||
Example of the output: | |||
<pre>mail: admin@example.com | |||
mail: root@example.com | |||
mail: postmaster@example.com | |||
zimbraPasswordModifiedTime: 20150622194134Z | |||
mail: galsync.h3ysynioki@example.com | |||
mail: ham.elwn5rkk@example.com | |||
zimbraPasswordModifiedTime: 20150622194207Z | |||
mail: spam.yre5n_qvpy@example.com | |||
zimbraPasswordModifiedTime: 20150622194157Z | |||
mail: virus-quarantine.qqigazmyak@example.com | |||
zimbraPasswordModifiedTime: 20150622194220Z</pre> | |||
==Additional Content== | ==Additional Content== | ||
* | * No related content. | ||
{{Article Footer|Zimbra Collaboration 8.6, 8.5, 8.0|04/16/2015}} | {{Article Footer|Zimbra Collaboration 8.6, 8.5, 8.0|04/16/2015}} | ||
{{NeedSME|SME1|SME2| | {{NeedSME|SME1|SME2|Jenny Jarrard}} |
Latest revision as of 13:48, 3 September 2015
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@example.com mail: root@example.com mail: postmaster@example.com zimbraPasswordModifiedTime: 20150622194134Z mail: galsync.h3ysynioki@example.com mail: ham.elwn5rkk@example.com zimbraPasswordModifiedTime: 20150622194207Z mail: spam.yre5n_qvpy@example.com zimbraPasswordModifiedTime: 20150622194157Z mail: virus-quarantine.qqigazmyak@example.com zimbraPasswordModifiedTime: 20150622194220Z
Additional Content
- No related content.