Results 1 to 3 of 3

Thread: [SOLVED] Change uid and mail of a user

  1. #1
    Join Date
    Dec 2009
    Posts
    4
    Rep Power
    6

    Default [SOLVED] Change uid and mail of a user

    Hello,

    at our company were using our ASP.NET application to create users as well as for the application and Zimbra as well by calling a remote PHP script which implements Zimbra PHP API to create accounts, which works perfectly.
    But the problems start when the new users miss-spelled and need to be corrected, and because we're using name.surname@domain.com mail address format we also need to change the email and uid of the user on zimbra, which fails.
    I have also tried changing those two things localy with zimbra user using command:
    Code:
    zmprov ma existing.mail@domain.com uid changed.user mail changed.user@domain.com
    which produces the following error:
    Code:
    ERROR: service.INVALID_REQUEST (invalid request: uid is immutable)
    Same error if I drop out the uid and want to change only the mail address only that it says mail is immutable.
    I have tried locking down the account for maintainance before changing and still doesn't work. So now I'm thinking, maybe I am doing this wrong.
    So now the question arises, how to change the address and login of the account?

    Best regards,
    Thomas

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Welcome to the forums

    I am guessing it will be a two stage process in that you will need to do a
    Code:
    su - zimbra
    zmprov renameAccount {name@domain|id} {newName@domain}
    first then followed by the modifyAccount to change the specific attributes.

  3. #3
    Join Date
    Dec 2009
    Posts
    4
    Rep Power
    6

    Default

    That's what I did, and it worked. SOLVED.
    Thanks.

Similar Threads

  1. Can no longer start desktop
    By foobaz in forum General Questions
    Replies: 12
    Last Post: 04-02-2010, 05:06 PM
  2. getting duplicate copy of old emails every day
    By chandu in forum Administrators
    Replies: 4
    Last Post: 05-12-2009, 01:16 AM
  3. Problem syncing all folders
    By mark_the_chain in forum Error Reports
    Replies: 0
    Last Post: 11-23-2008, 04:59 PM
  4. [SOLVED] mailbox and apache not running
    By rtwick in forum Administrators
    Replies: 4
    Last Post: 11-15-2008, 08:21 AM
  5. Samba extension on existing install?
    By bersrker in forum Administrators
    Replies: 8
    Last Post: 05-17-2007, 11:42 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
  •