LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to Upgrade Ldap Withou Losinf Data (https://www.linuxquestions.org/questions/linux-server-73/how-to-upgrade-ldap-withou-losinf-data-4175442580/)

hesisaboury 12-22-2012 01:06 PM

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

TB0ne 12-22-2012 01:25 PM

Quote:

Originally Posted by hesisaboury (Post 4855059)
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.


All times are GMT -5. The time now is 11:20 AM.