Results 1 to 2 of 2

Thread: Initalize new LDAP Directory

  1. #1
    voltcraft is offline Intermediate Member
    Join Date
    Mar 2007
    Posts
    22
    Rep Power
    8

    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!

  2. #2
    voltcraft is offline Intermediate Member
    Join Date
    Mar 2007
    Posts
    22
    Rep Power
    8

    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

Thread Information

Users Browsing this Thread

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

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, 12:16 PM
  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
  •