Results 1 to 2 of 2

Thread: Initalize new LDAP Directory

  1. #1
    Join Date
    Mar 2007
    Rep Power

    Default Initalize new LDAP Directory

    As I wrote under 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?


  2. #2
    Join Date
    Mar 2007
    Rep Power


    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

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

    ldap stop
    remove all files exept DB_CONFIG from openldap-data

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

    ldap start
    restore backup

    ldapadd -x -D "uid=zimbra,cn=admins,cn=zimbra" -w xxx < backup.ldif

Similar Threads

  1. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 09:30 AM
  2. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. Replies: 4
    Last Post: 11-15-2006, 11:16 AM
  5. LDAP External Auth Fedora Directory Services
    By prpatrol in forum Administrators
    Replies: 3
    Last Post: 08-14-2006, 06:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts