Some more information.
I deleted the 'cn=config' folder and the 'cn=config.ldif' file in /opt/zimbra/data/ldap/config', and then ran:
Code:
/opt/zimbra/openldap/sbin/slapadd -q -n 0 -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap-config.bak
Which completes without any errors.
Users can now login and see there emails as normal. However, when logging into the Admin Console, no user accounts are listed. Likewise running 'zmprov gaaa' lists no accounts.
If I then remove (rename) the data.mdb from /opt/zimbra/data/ldap/mdb/db folder try to run:
Code:
/opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap.bak
It completes without error:
Code:
added: "cn=zimbra" (00000001)
added: "cn=admins,cn=zimbra" (00000002)
added: "uid=zimbra,cn=admins,cn=zimbra" (00000003)
added: "uid=zmreplica,cn=admins,cn=zimbra" (00000004)
added: "cn=appaccts,cn=zimbra" (00000005)
added: "uid=zmnginx,cn=appaccts,cn=zimbra" (00000006)
added: "uid=zmpostfix,cn=appaccts,cn=zimbra" (00000007)
added: "uid=zmamavis,cn=appaccts,cn=zimbra" (00000008)
added: "uid=zmbes-searcher,cn=appaccts,cn=zimbra" (00000009)
added: "cn=zimlets,cn=zimbra" (0000000a)
.........
If i don't remove the 'data.mdb' file and run the command, i receive a whole bunch of Key/data pair already exists errors:
Code:
50dc4608 => mdb_tool_entry_put: txn_aborted! MDB_KEYEXIST: Key/data pair already exists (-30799)
but then, users (including Admin) have no login access at all to the webclient or Admin Console (in the case of the admin user acc.) .
I can't figure where I'm going wrong with the import of this LDAP data into Zimbra 8.0.2.?
Have I made an error witht the initial import/transfer of the data.mdb database before LDAP import?