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 05-11-2007, 04:46 AM
Intermediate Member
 
Posts: 22
Default Initalize new LDAP Directory

As I wrote under Can't create users/aliases I have some serious troubles with my ldap directory.

So I decided to initialize a completly new directory. I made a backup using slapcat but in the result ldif file there are some entries missing... With ldapsearch on root I could make a full backup of the directory.

How can I restore these information to have a working ldap? Using ldapdelete didn't helped because I can't delete some nodes, so I thought it would help to initialze a fresh installation and then use ldapadd on the backup ldif file.

Before I'll do this I'd like to run db_recover but I can't find it in the zimbra installation.. How can I run this manually?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 05-15-2007, 03:11 AM
Intermediate Member
 
Posts: 22
Default

I fixed the problem! What I did is following:

backup ldap using ldapsearch because slapcat would give you some errors when the directory is damaged

Code:
ldapsearch -x -D "uid=zimbra,cn=admins,cn=zimbra" -w xxx > backup.ldif
shutdown ldap server

Code:
ldap stop
remove all files exept DB_CONFIG from openldap-data

Code:
rm -rf /opt/zimbra/openldap-data/*; touch /opt/zimbra/openldap-data/DB_CONFIG
start ldap

Code:
ldap start
restore backup

Code:
ldapadd -x -D "uid=zimbra,cn=admins,cn=zimbra" -w xxx < backup.ldif
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.