Solved

How do I Replace LDAP database with LDIF file

Posted on 2011-09-14
2
260 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
2 Comments
 
LVL 40

Accepted Solution

by:
noci earned 500 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now