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

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 04-30-2010, 01:48 AM
New Member
 
Posts: 4
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
Reply With Quote
  #2 (permalink)  
Old 04-30-2010, 05:19 AM
Moderator
 
Posts: 7,928
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.
__________________
Reply With Quote
  #3 (permalink)  
Old 04-30-2010, 05:57 AM
New Member
 
Posts: 4
Default

That's what I did, and it worked. SOLVED.
Thanks.
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.