|
|
| ZCS Administrator's Guide, Network Edition 4.5, Rev 2 11/07 |
The zmprov tool performs all provisioning tasks in Zimbra LDAP, including creating accounts, aliases, domains, distribution lists, and calendar resources. Each operation is invoked through command-line options, each of which has a long name and a short name.The syntax for modify can include the prefix "+” or "-” so that you can make changes to the attributes affected and do not need to reenter attributes that are not changing. Use + to add a new instance of the specified attribute name without changing any existing attributes. Use - to remove a particular instance of an attribute. The syntax is zmprov [cmd] [argument].The following example would add the attribute zimbraZimletUserProperties with the value "testing” to user 1 and would not change the value of any other instances of that attribute.
Long Name {host}[:{port}] server hostname and optional port --account {name} --password {pass} --passfile {file} --zadmin use zimbra admin name/password from localconfig for admin/password --verbose verbose mode (dumps full exception stack trace) debug mode (dumps SOAP messages)The commands in the following table are divided into the following tasks types - Account, Calendar Resources, Config, COS, Distribution List, Documents, Domain, Server, and Miscellaneous.
Short Name Syntax:{name@domain} {password} [attribute1 value1 etc]zmprov ca joe@domain.com test123 displayName JSmith {name@domain|id|adminName} [attribute1 value1 etc]zmprov ma joe@domain.com zimbraAccountStatus maintenance {name@domain|id|adminName} {password}Note: Passwords cannot included accented characters in the string. Example of accented characters that cannot be used: ã, é, í, ú, ü, ñ. {name@domain|id|adminName} {alias@domain}zmprov aaa joe@domain.com joe.smith@engr.domain.com {name@domain|id|adminName} {alias@domain}zmprov raa joe@domain.com joe.smith@engr.domain.com {name@domain|id|adminName} {cos-name|cos-id} [-v] {ldap-query} [limit] [offset] [sortBy {attribute} {name@domain} [attr1 value1 [attr2 value2...]] {name@domain|id} [attr1 value1 {attr2 value2...]] zmprov cc Executive zimbraAttachmentsBlocked FALSE zimbraAuthTokenLifetime 60m zimbraMailQuota 100M zimbraMailMessageLifetime 0 zmprov mc Executive zimbraAttachmentsBlocked TRUE zmprov ms domain.com zimbraVirusDefinitionsUpdateFrequency 2h zmprov adlm needlepoint-list@domain.com singer23@mail.free.net zmprov rdlm needlepoint-list@domain.com singer23@mail.free.net Get DistributionListmembership {list@domain|id} attr1 value1 {attr2 value2...} Before importing files, any file that will become a Documents page (wiki-style page), must be renamed to include the extension ".wiki”. If not it is imported as a file, accessed either as an attachment or an image.impn joe@domain.com /opt/zimbra/wiki/template template Generates a pre-authentication key to enable a trusted third party to authenticate to allow for single-sign on. Used in conjunction with GenerateDomainPreAuth. {domain|id} {name} {name|id|foreignPrincipal} {timestamp|0} {expires|0}
• Create one account with a password that is assigned to a specified COS. You must know the COS ID number. To find a COS ID, type gc <COSname>.zmprov ca name@domain.com password zimbraCOS cosIDnumberstring
• Using a batch process to create accounts, see Managing the Zimbra Collaboration Suite chapter for the procedure.
• Add a member to a distribution list. Tip: You can add multiple members to a list from the administration console.
• Change the administrator’s password. Use this command to change any password. Enter the address of the password to be changed.Then type zmloggerctl start, to start the logger.
• Modify zimbraNewMailNotification to customize the notification email template. A default email is sent from Postmaster notifying users that they have received mail in another mailbox. To change the template, you modify the receiving mailbox account. The variables areYou can specify which of the above variables appear in the Subject, From, or Body of the email. The following example is changing the appearance of the message in the body of the notification email that is received at name@domain.com. You can also change the template in a class of service, use zmprov mc. The command is written on one line.zmprov ma name@domain.com zimbraNewMailNotificationBody ‘Important message from ${SENDER_ADDRESS}.${NEWLINE}Subject:${SUBJECT}’
|
|
| ZCS Administrator's Guide, Network Edition 4.5, Rev 2 11/07 |