Results 1 to 3 of 3

Thread: Zimbra + Samba - can't restore accounts from backup

  1. #1
    mozg31337 is offline Active Member
    Join Date
    Apr 2009
    Location
    London
    Posts
    40
    Rep Power
    6

    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

  2. #2
    devnul is offline New Member
    Join Date
    Oct 2008
    Posts
    3
    Rep Power
    6

    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.

  3. #3
    mozg31337 is offline Active Member
    Join Date
    Apr 2009
    Location
    London
    Posts
    40
    Rep Power
    6

    Default

    Thanks, It did solve the problem.

    Andrei

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 09:56 PM
  3. Cleanup after many upgrades
    By tobru in forum Installation
    Replies: 1
    Last Post: 12-23-2007, 09:21 AM
  4. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 08:55 AM
  5. Replies: 8
    Last Post: 02-27-2007, 04:10 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
  •