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

Thread: [SOLVED] Best Way To Perform Name Changes?

  1. #1
    Join Date
    Dec 2007
    Location
    Stockton, CA
    Posts
    164
    Rep Power
    8

    Default [SOLVED] Best Way To Perform Name Changes?

    Hey All,

    We have a lot of employees who are changing their names (marriage, mostly). What is the best way of changing their username in Zimbra?

    What we did with our old mail system was we'd set up the new account, set up both accounts in the same IMAP client, drag their mail from the old account to the new account, delete the old account, then set-up an alias so that mail sent to their old account would be forwarded to their new account.

    Now that we're using Zimbra, users will probably be setting up calendars and advanced address books. Is there a way to do name changes to that their profile follows them?

    I hope I make sense.

    Thanks in advance!

  2. #2
    Join Date
    Jan 2008
    Posts
    658
    Rep Power
    8

    Default

    You can rename them right from the admin console or from zmprov. I'd be sure to add an alias to their account for their old address.

  3. #3
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Moving to Zimbra Server forum.

  4. #4
    Join Date
    Aug 2007
    Location
    Anchorage, AK
    Posts
    376
    Rep Power
    8

    Default

    y@w is definately right. I've had my system live for all of one morning so far and I have already had to make a change like that. Extremely easy to do.
    Culley
    Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
    Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now

  5. #5
    Join Date
    Sep 2007
    Location
    Richmond, Ky
    Posts
    281
    Rep Power
    8

    Default

    Quote Originally Posted by y@w View Post
    You can rename them right from the admin console or from zmprov. I'd be sure to add an alias to their account for their old address.
    Would doing this mean that if an email came in with their old address the server would recognize it and automatically put it under their new account name?

    dj

  6. #6
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Yes, an account will receive mail for any aliases you give it.

  7. #7
    Join Date
    Sep 2007
    Location
    Richmond, Ky
    Posts
    281
    Rep Power
    8

    Default

    Quote Originally Posted by mmorse View Post
    Yes, an account will receive mail for any aliases you give it.
    Thanks. Changed it and added the alias and it worked great. I noticed that I had to change the user name first, save it and then go back and add the alias.

    dj

  8. #8
    Join Date
    Dec 2007
    Posts
    50
    Rep Power
    8

    Default

    All my user's name changes take place in our Directory Services (eDirectory) first. I then use the following script to check our LDAP server for the correct values.

    #!/bin/bash
    # User Name change
    # eDirectory information must be updated first!
    emaildomain="enter.email.domain.org"
    domain="domain.org"
    LDAPSERV="ldap.server.org"

    #Do not change below line
    #------------------------------------------------------------------
    who=`whoami`
    if [ "$who" != "zimbra" ]
    then
    echo
    echo "Please su to the zimbra user before running this script"
    echo
    exit
    fi

    if [ -z "$1" ] || [ -z $2 ]; then
    echo
    echo -e "\nUsage: namechange <Old ID> <New ID>"
    echo
    exit
    fi
    gn=`ldapsearch -LLL -x -h $LDAPSERV cn=$1 givenName|grep givenName:|cut -f 2 -d:|cut -f 2 -d' '`
    gnl=`expr length "$gn"`

    sn=`ldapsearch -LLL -x -h $LDAPSERV cn=$1 sn|grep sn:|cut -f 2 -d:|cut -f 2 -d' '`
    snl=`expr length "$sn"`


    if [ $gnl -eq "0" ]||[ $snl -eq "0" ];then
    echo
    echo "LDAP ERROR at $1"
    echo "Start over with this user"
    echo
    exit
    fi

    zmprov ra $1@$emaildomain $2@$emaildomain
    zmprov ma $2@$emaildomain zimbraMailCanonicalAddress $2@$domain
    zmprov ma $2@$emaildomain sn "$sn" displayName "$gn $sn"
    As always, use at your own risk.

    The zmprov commands at the end will have to be tweaked for your environment.

  9. #9
    Join Date
    Sep 2007
    Location
    Richmond, Ky
    Posts
    281
    Rep Power
    8

    Default

    Quote Originally Posted by dljordaneku View Post
    Thanks. Changed it and added the alias and it worked great. I noticed that I had to change the user name first, save it and then go back and add the alias.

    dj
    Just wanted to update something on this. I don't know if this a bug or not. When I made this change it removed the person from any dist. list they were on. So I went back and tested this. If I just change the username and nothing else, it keeps them in the list with the new username. If I try and change the username and add the alias at the same time, I get the error about the username and then it will remove them from any dist. list they are in.

    dj

  10. #10
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    Sounds like a bug to me, in the event of an error message preventing an action from completing, no changes to the account should be committed.

    Would you mind logging this in the bugzilla so it can be tracked/fixed ?

Similar Threads

  1. How to UPDATE softwares
    By dougz in forum Administrators
    Replies: 12
    Last Post: 04-29-2009, 04:00 PM
  2. When an Automatic Forward action is perform?
    By riravedra in forum Developers
    Replies: 6
    Last Post: 11-19-2007, 09:54 AM

Posting Permissions

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