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

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 10-13-2005, 08:17 AM
Awaiting Activation
 
Posts: 2
Default Add Description, First / Last / Display Names using command line?

We're bulk loading users into our Zimbra system from a text file. I've gone through the admin manual, but can't find any reference to add a "Description" field using zmprov.

Is there a way to add the Firstname / Lastname / Display name fields using zmprov (or some other command-line tool)?

Last edited by sean.mccorkell; 09-18-2006 at 01:01 PM..
Reply With Quote
  #2 (permalink)  
Old 10-13-2005, 08:57 AM
Zimbra Employee
 
Posts: 228
Default

thanks. If you want to see a list of all the valid attributes on an account, take a look at the following file:

Code:
/opt/zimbra/openldap/etc/openldap/schema/zimbra.schema
Look for "objectclass ( zimbraAccount". And it will show you all the valid attribute names.

An easier approach might be to use the GUI admin to set all the fields you are interested on a particular account, then look at the account with zmprov:

Code:
/opt/zimbra/bin/zmprov ga account@your.domain
that will show you all the attribute names, you are interested, like:

Code:
description: some description
givenName: John
sn: Smith
...
The attributes like givenName and sn come from LDAP, so don't blame us fo the name

you can then write a script that calls zmprov modifyAccount on whatever accounts you want:

Code:
zmprov ma account2@your.domain description "some description" sn Jones
hope that helps...

roland
Reply With Quote
  #3 (permalink)  
Old 10-13-2005, 09:07 AM
Awaiting Activation
 
Posts: 2
Default

Roland,

Thanks for the quick reply.

That was very helpful - I didn't realize that we could use "zmprov ma" to add LDAP attributes - I'd already figured out how to view the attributes using "zmprov ga"...

I've realized this be taken a step further, like "zmprov ca student@mail.org somepassword description somedescription sn somesn etc" to populate everything during account creation...although I received an error for the givenName field:

WARN: checkValue: no attribute info for: givenName

Thanks again for your help.....

Last edited by sean.mccorkell; 01-18-2006 at 08:00 AM..
Reply With Quote
  #4 (permalink)  
Old 10-13-2005, 10:16 AM
Zimbra Employee
 
Posts: 228
Default

Yeah, zmprov is just manipulating LDAP attributes.

The "WARN: *" message is just that, a warning message. We do some sanity checking on the server before sending requests to LDAP, and it looks like we accidently added "gn" instead of "givenName" to our list of attributes to check (gn is an allowed alias for givenName on input, but on output the LDAP server always send givenName).

The value should still have been updated. I'll make sure we check for "givenName" in the next release...

thanks, roland
Reply With Quote
  #5 (permalink)  
Old 10-13-2005, 11:09 AM
Loyal Member
 
Posts: 95
Default

hey, just curious can I use zmprov to add other attribute not in zimbraAccount object?
Reply With Quote
  #6 (permalink)  
Old 10-13-2005, 11:54 AM
Zimbra Employee
 
Posts: 228
Default

LDAP schema checking will only allow attributes that are valid for entries object class(es) to be set.

roland
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.