Solved

How do I Replace LDAP database with LDIF file

Posted on 2011-09-14
2
294 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ACK Attack 5 62
Linux neworking 4 133
IPA complaining about DNS but DNS looks good.... 2 146
iptables ubuntu BLOCK all 2 90
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 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