Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-2007, 12:33 PM
Intermediate Member
 
Posts: 16
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.
Reply With Quote
  #2 (permalink)  
Old 03-27-2007, 10:50 PM
Project Contributor
 
Posts: 11
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.