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

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 11-17-2006, 06:46 PM
Intermediate Member
 
Posts: 21
Default Can a user update their entry in GAL?

I'm relatively new to Zimbra and am evaluating the Network Pro edition for my company. I setup the demo and created accounts for everyone - but I didn't fill out any of the contact information (address, phone, etc). Can the user update that information herself?

Even better, since we are one company, is there a way to set defaults for certain fields so that when I create a new user, they have the office address already there?

Is there a way to export the GAL in vcard format? I found the REST API to export contacts in vcf format, but can't figure out how to apply that to the GAL.

Currently every employee uses Outlook with an imap server, so every employee
has a private address book with all the other employees entered. And when someone makes a change, it has to be emailed out to everyone, updated, etc. We just want to use the GAL for everything so that when it is updated everyone sees the results. But we want each user to be able to manage their entry. Is this possible?

Perhaps eventually we'll be running Active Directory anyway, so maybe we'll have a different problem to solve anyway. . .

Thanks,

-Bob
Reply With Quote
  #2 (permalink)  
Old 10-19-2007, 08:10 AM
Elite Member
 
Posts: 281
Default

I was wondering if anyone ever figured this out. I was looking for this very thing myself now. Thanks for any help anyone can provide.

dj
Reply With Quote
  #3 (permalink)  
Old 10-19-2007, 12:08 PM
Senior Member
 
Posts: 51
Default

Nope, it is still only available to server, or domain admins. (Which makes it hard for companies like ours that wouldn't mind everyone updating their or, or atleast passing it to HR/Office Management without giving them ability to add/modify/remove accounts,lists, resources, etc)

There are bugs/Feature requests to vote on and watch:

Let Users Update: Bug 5953 - allow user to edit their own LDAP/GAL attributes
Let Staff Update: Bug 19429 - more detailed access rights to update the GAL
Reply With Quote
  #4 (permalink)  
Old 10-19-2007, 12:20 PM
Elite Member
 
Posts: 281
Default

Quote:
Originally Posted by jeffreyheinen View Post
Ok. I voted on this so hopefully it will be added later. Anybody know of an easy way to update almost 300 users?

dj
Reply With Quote
  #5 (permalink)  
Old 10-23-2007, 08:20 AM
Special Member
 
Posts: 103
Default

You can make a script to make a file that you can input to zmprov to update the accounts.

the file would look something like

ma user@domain.com givenName "New First"
ma user@domain.com sn "New Last"
ma user@domain.com displayName "New Name"
Reply With Quote
  #6 (permalink)  
Old 10-23-2007, 09:53 AM
Elite Member
 
Posts: 281
Default

Quote:
Originally Posted by mcesari View Post
You can make a script to make a file that you can input to zmprov to update the accounts.

the file would look something like

ma user@domain.com givenName "New First"
ma user@domain.com sn "New Last"
ma user@domain.com displayName "New Name"
Sweet. Thanks a lot. Is there any place what list all of the different commands that zmprov can do?

dj
Reply With Quote
  #7 (permalink)  
Old 10-23-2007, 10:06 AM
Special Member
 
Posts: 103
Default

run zmprov and then 'help commands' and it will list all the commands
Reply With Quote
  #8 (permalink)  
Old 10-24-2007, 07:58 AM
Senior Member
 
Posts: 55
Default wiki

Look at wiki.zimbra.com, search on zmprov and you will find it. In addition, the manual shows the CLI commands for zimbra.

I've been using these a lot lately, and its a great feature, but the documentation could be a little more robust. Especially for the zmmailbox commands.

Hope this helps..
Reply With Quote
  #9 (permalink)  
Old 11-05-2007, 07:53 AM
Elite Member
 
Posts: 281
Default

Ok. here is a script that I put together that seems to do what I want it to do. I just echo the email address so I can see which one it is currently working on.

Code:
#!/bin/bash


    while IFS=';' read EMAIL GNAME SNAME DNAME;
     do
     echo "$EMAIL"
    /opt/zimbra/bin/zmprov ma "$EMAIL" givenname "$GNAME"
    /opt/zimbra/bin/zmprov ma "$EMAIL" sn "$SNAME"
    /opt/zimbra/bin/zmprov ma "$EMAIL" displayname "$DNAME"
done </opt/user.txt

exit
I then create a user.txt file with the format of email address;First Name;Last Name;Complete Name for each person per line. I haven't tested it on more than two users at a time as I am waiting the compile a complete after working with our HR department.

One more question, what attributes can I change? I haven't been able to find anything on what I can change in the GAL. Can I change Phone number, address and etc.?

Thanks.
dj
Reply With Quote
  #10 (permalink)  
Old 11-05-2007, 08:07 AM
Special Member
 
Posts: 103
Default

run 'zmprov ga anaccount@yourdomain' to list everything and i think you can change all of those attributes with modifyAccount

also you might want to just have your output be 'ma $EMAIL" givenname "$GNAME"' without the zmprovs then write the output to a file. Then run the file with zmprov -f filename.

I have found that zmprov takes a little while to load so if you run it for each line your script will go very slowly.
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.