mrlpm / zimbraexpirebycos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zimbra script to force password change

Zimbra script to force password change with specific COS.

Dependencies

  • pwgen
  • bash

Usage

Usage: fcp.sh [-vseh] [-p P4$s ] [-c UID]
OPTIONS:
    -h Show this help
    -v Show version
    -s Show current COS and their IDs
    -e Set expire password to all accounts from COS ID
    -c Specify the COS ID
    -p Specify temporal password (default autogenerate)

Examples

Get all COS with ID

fcp.sh -s

Output

# name default => zimbraId: 39a0c4f2-16b1-407a-b0fd-d7a49f210d2d
# name defaultExternal => zimbraId: 7363e52d-6c6c-4a4a-a8dd-364275034fe9

Set expire password and use autogenerated password

fcp.sh -e -c 39a0c4f2-16b1-407a-b0fd-d7a49f210d2d

Set expire password and with given password

fcp.sh -e -c 39a0c4f2-16b1-407a-b0fd-d7a49f210d2d -p MyTmPp4$s

About

License:MIT License


Languages

Language:Shell 100.0%