As per Support advice I sis as follow
From a perl script, run these commands:
sudo perl
use EBox;
use EBox::Global;
EBox::init();
my $users = EBox::Global->modInstance('users');
$users->performLDAPActions();
After that run the fix_quotas script
http://git.zentyal.org/zentyal.git/blob_plain/refs/heads/2.2:/extra/migrate-2.0-to-2.2/post-upgrade/005_fix_quotas
Now I ended up with even worse scenario and I Seriously need the best route to fix this! Is the Broken scheme part of my Config Backup or can I backup - rebuild and restore or must I rebuild the server and manually re-create all the users ?
Any case the error now is a duplicate scheme or something:
2012/09/25 20:39:40 ERROR> LdapModule?.pm:144 EBox::LdapModule::_loadSchemaDirectory - olcAttributeTypes: Inconsistent duplicate attributeType: "quota"
2012/09/25 20:41:33 ERROR> Ldap.pm:699 EBox::Ldap::_errorOnLdap - $VAR1 = {
'changes' => [
'replace', [
'objectClass', [
'inetOrgPerson', 'posixAccount', 'passwordHolder', 'sambaSamAccount', 'CourierMailAccount?', 'usereboxmail', 'fetchmailUser', 'systemQuotas'
]
]
]
};
2012/09/25 20:41:33 ERROR> Ldap.pm:701 EBox::Ldap::_errorOnLdap - Unknown error at main::addSystemQuotas objectClass: value #7 invalid per syntax
2012/09/25 20:42:16 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: mail
2012/09/25 20:42:19 ERROR> Ldap.pm:699 EBox::Ldap::_errorOnLdap - $VAR1 = {
'changes' => [
'delete', [
'mail', 'gerrit@…', 'mailbox', 'ameatm.com/gerrit/', 'userMaildirSize', '0', 'mailHomeDirectory', '/var/vmail/', 'objectClass', 'couriermailaccount', 'objectClass', 'usereboxmail', 'objectClass', 'fetchmailUser'
]
]
};
2012/09/25 20:42:19 ERROR> Ldap.pm:701 EBox::Ldap::_errorOnLdap - Unknown error at EBox::MailUserLdap::delUserAccount attribute 'quota' not allowed 2012/09/25 20:42:19 ERROR> Service.pm:721 EBox::Module::Service::ANON - Error restarting service: Unknown error at EBox::MailUserLdap::delUserAccount attribute 'quota' not allowed