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 09-28-2009, 08:57 AM
Active Member
 
Posts: 40
Default Zimbra + Samba - can't restore accounts from backup

Hello everyone,

I've tried to restore an account from backup, but failed with the following error:

$ zmrestore -a <username> -restoreToTime 20090927060000 -ca -pre old_
using restore to time of 2009/09/27 06:00:00
Error occurred: invalid request: createAccount invalid schema change: [LDAP: error code 65 - object class 'posixAccount' requires attribute 'uidNumber']


I guess this is because of the Samba extensions that i've installed on the server. Does anyone know how to overcome this problem?

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-28-2009, 10:10 AM
New Member
 
Posts: 3
Default

try running these commands, and then trying the restore again:

Code:
su zimbra
zmprov mcf -zimbraAccountExtraObjectClass posixAccount
zmprov mcf -zimbraAccountExtraObjectClass sambaSamAccount
afterwards, you'll want to run
Code:
zmprov mcf +zimbraAccountExtraObjectClass posixAccount
zmprov mcf +zimbraAccountExtraObjectClass sambaSamAccount
Those commands enable and disable the extra account attributes needed for samba/posix. If the account was created before you installed the samba addons, then the restore is bailing because uidNumber is a required atrribute that was not included in your backup. After restoring, browse to the users tab in zimbra, set and save the posix and samba attributes.

Hope this helps.
Reply With Quote
  #3 (permalink)  
Old 09-29-2009, 03:03 AM
Active Member
 
Posts: 40
Default

Thanks, It did solve the problem.

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