Results 1 to 2 of 2

Thread: set the department field in "contact information" through command line? stored where?

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    16
    Rep Power
    9

    Default set the department field in "contact information" through command line? stored where?

    Is there a way to set the department text field (or any other field on the Contact Information), through the command line like through zmprov?

    I'm talking about the field you can see here:
    edit the account > Contact Information tab > Department text field

    looks like the only possible place is stored in inetorgperson.schema's departmentNumber?

    I tried setting that with zmprov, but that didn't work:
    zmprov ca xxxxx@ggggggg.com ewbge displayName "Noam Chomsky" departmentName "Sales"

    Any clues?

    It would be sweet if this is possible, so I can script everything to setup the account fully with all the information in it.

  2. #2
    Join Date
    Mar 2007
    Posts
    11
    Rep Power
    8

    Default Dept = OU

    Department is Organizational Unit in LDAP speak. So, you'll find that field in ou.

    Just fill out all the fields with the Admin interface then do a 'zmprov ga user@domain' and examine the results to find the other fields.

    You can set the dept on the command line with 'zmprov ma user@domain ou "Accounting"'

    Example:
    Code:
    ca dlbewley@domain "password"
    ma dlbewley@domain zimbraCOSid "<UUID for COS>"
    ma dlbewley@domain givenName "Dale"
    ma dlbewley@domain sn "Bewley"
    ma dlbewley@domain cn "dlbewley"
    ma dlbewley@domain initials ""
    ma dlbewley@domain displayName "Dale Bewley"
    ma dlbewley@domain ou "Systems"
    ma dlbewley@domain description "Unix Server Admin"
    ma dlbewley@domain zimbraNotes "All your base belong to he"
    ma dlbewley@domain zimbraPasswordMustChange FALSE
    See also
    http://wiki.zimbra.com/index.php?tit...rovisioning%29
    http://wiki.zimbra.com/index.php?title=Bulk_Create

Similar Threads

  1. Update Received Date in Folder-Listing
    By Oswald-Kolle in forum Installation
    Replies: 25
    Last Post: 08-21-2007, 05:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •