?
Solved

How do I Replace LDAP database with LDIF file

Posted on 2011-09-14
2
Medium Priority
?
310 Views
Last Modified: 2012-05-12
I have an OpenLDAP openldap-server-2.3.43 that I'm trying to replace the existing (very outdated) database with the LDIF file from the more current server.

I would generally use slapadd -l after stopping the services, but I've noticed that it does not remove records it just adds (which makes sense as it is slapADD).

My question: Is there a similar way to REPLACE the current database with the contents of the LDIF file?
0
Comment
Question by:gracewild
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
noci earned 2000 total points
ID: 36538384
How about creating a new database and then load the ldif?
The database can be found through the slapd.conf

in a statement like this:

directory       /var/lib/openldap-data

0
 

Author Closing Comment

by:gracewild
ID: 36538498
Noci,

Thank you for your reply.  

I stopped the ldap service, then I renamed the openldap-data and created an empty openldap-data directory with ldap:ldap permissions and did the slapadd -l and started the ldap services.

Everything is as I need it.

Thank you
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question