Quote:
Originally Posted by hesisaboury
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.