LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-22-2012, 01:06 PM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Rep: Reputation: 0
How to Upgrade Ldap Withou Losinf Data


Hello,
There is ldap server that i should upgrade to new structure , i mean , new ldap has more attribute than old one and also some field's access changed (r,rw) . i don't want to lose it's current data .

any suggestion.....
Thanks
 
Old 12-22-2012, 01:25 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by hesisaboury View Post
Hello,
There is ldap server that i should upgrade to new structure , i mean , new ldap has more attribute than old one and also some field's access changed (r,rw) . i don't want to lose it's current data .

any suggestion.....
Thanks
How do you currently back up your LDAP database?? You could use
Code:
slapcat -v -l backup.ldif
..to back up your current openLDAP database to a file. Then you could import it:
Code:
/etc/init.d/slapd stop ...stop LDAP first
slapadd -l backup.ldif  ..will add the backed-up data to your LDAP database
chown -R openldap:openldap /var/lib/ldap/* ..fix permissions if needed
As long as you take good backups first, you should just be able to add the existing data in, as far as I know. Be sure to TEST this first on your backup/lab system, before doing it in production.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to delete LDAP Data base bdb sheelavantar Linux - Server 1 08-30-2011 12:38 AM
Inserting data into ldap via PHP tuxtutorials Programming 2 01-24-2009 01:57 PM
upgrade system with lvm on software raid-1 data volume w/o losing data BinWondrin Linux - General 1 01-13-2009 03:25 PM
Move LDAP data from Fedora to SUSE dweeb Linux - Newbie 2 11-08-2005 09:03 AM
Data storage of LDAP? grubjo Linux - General 1 09-03-2004 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration