zmprov mc COSname zimbraPasswordMustChange TRUE
--Edit1--
Actually it's
not available on COS or domain:
Quote:
<attr id="41" name="zimbraPasswordMustChange" type="boolean" cardinality="single" optionalIn="account" flags="domainAdminModifiable">
<desc>must change password on auth</desc>
</attr>
|
I don't see an RFE on having zimbraPasswordMustChange in the COS or domain level, so you feel free to open one in bugzilla if you want.
So either script it into the account creation:
OR get a list of all users in a COS then apply it to them:
Code:
zmprov gc COSName | grep zimbraId
zmprov sa zimbraCOSId=string > accounts.txt
More methods here
[SOLVED] Looking for reporting output of names, accounts, lists, alias, etc. like:
Quote:
zmprov gac -v | grep -e cn: -e zimbraId
zmprov gaa -v | grep -e mail: -e zimbraCOSId | grep -B1 PutCOSIdStringHere | grep mail: | awk '{print $2}'
|
Check that file to make sure you didn't hit
Bug 29763 - Missing zimbraCOSId when set to auto
Then take that list back in:
zmprov < file.txt where file.txt contains ma
user@domain.com zimbraPasswordMustChange TRUE
---Edit2---
Even easier do:
Code:
zmprov gc COSName | grep zimbraId
nano /opt/zimbra/somewhere/script.sh
-copy the below & save
-make the file readable & executable with chmod
-then run ./script.sh as root or zimbra
Code:
#!/bin/bash
for i in `/opt/zimbra/bin/zmprov sa zimbraCOSId=IDStringHERE`
do
echo $i
/opt/zimbra/bin/zmprov ma $i zimbraPasswordMustChange TRUE
done