Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Can a user update their entry in GAL?

  1. #1
    Rubble is offline Intermediate Member
    Join Date
    Oct 2006
    Posts
    21
    Rep Power
    8

    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

  2. #2
    dljordaneku is offline Elite Member
    Join Date
    Sep 2007
    Location
    Richmond, Ky
    Posts
    281
    Rep Power
    7

    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

  3. #3
    jeffreyheinen's Avatar
    jeffreyheinen is offline Senior Member
    Join Date
    Jun 2007
    Location
    Oregon
    Posts
    51
    Rep Power
    8

    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

  4. #4
    dljordaneku is offline Elite Member
    Join Date
    Sep 2007
    Location
    Richmond, Ky
    Posts
    281
    Rep Power
    7

    Default

    Ok. I voted on this so hopefully it will be added later. Anybody know of an easy way to update almost 300 users?

    dj

  5. #5
    mcesari is offline Special Member
    Join Date
    Aug 2007
    Posts
    103
    Rep Power
    8

    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"

  6. #6
    dljordaneku is offline Elite Member
    Join Date
    Sep 2007
    Location
    Richmond, Ky
    Posts
    281
    Rep Power
    7

    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

  7. #7
    mcesari is offline Special Member
    Join Date
    Aug 2007
    Posts
    103
    Rep Power
    8

    Default

    run zmprov and then 'help commands' and it will list all the commands

  8. #8
    jefft@iri.columbia.edu is offline Senior Member
    Join Date
    Aug 2007
    Location
    New York
    Posts
    59
    Rep Power
    8

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

  9. #9
    dljordaneku is offline Elite Member
    Join Date
    Sep 2007
    Location
    Richmond, Ky
    Posts
    281
    Rep Power
    7

    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

  10. #10
    mcesari is offline Special Member
    Join Date
    Aug 2007
    Posts
    103
    Rep Power
    8

    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.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Documents fail to initialize
    By dgcarter in forum Installation
    Replies: 9
    Last Post: 12-18-2007, 12:44 AM
  2. Replies: 13
    Last Post: 07-20-2007, 03:21 AM
  3. Cannot determine services - exiting
    By tawas in forum Installation
    Replies: 7
    Last Post: 04-25-2006, 02:47 AM
  4. Initializing ldap...FAILED (256)
    By CVD in forum Installation
    Replies: 17
    Last Post: 03-10-2006, 09:47 AM
  5. Yet another get.DirectContext issue
    By dccpark in forum Installation
    Replies: 5
    Last Post: 03-08-2006, 01:25 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
  •