Difference between revisions of "LDAP Server Migration"
From Supercomputación y Cálculo Científico UIS
Line 11: | Line 11: | ||
4) Restore the DB with the command | 4) Restore the DB with the command | ||
{{Command|<nowiki>ldapadd -x -D "cn=someuser,dc=somedc,dc=edu,dc=co" -W -f respaldo</nowiki>}} | {{Command|<nowiki>ldapadd -x -D "cn=someuser,dc=somedc,dc=edu,dc=co" -W -f respaldo</nowiki>}} | ||
+ | |||
{{Note|<nowiki>It's assumed that the administrative user is cn=someuser,dc=somedc,dc=edu,dc=co</nowiki>}} | {{Note|<nowiki>It's assumed that the administrative user is cn=someuser,dc=somedc,dc=edu,dc=co</nowiki>}} |
Revision as of 19:13, 22 November 2014
Back to: LDAP
Creating LDAP Server Migration
1) In the source server, backup the DB with the command
slapcat > respaldo.raw
2) Eliminate the structural components from the backup file
egrep -v "^(structuralObjectClass|entryUUID|creatorsName|modifiersName|createTimestamp|modifyTimestamp|entryCSN):" respaldo.raw > respaldo
3) Copy the backup file to the destination server
4) Restore the DB with the command
ldapadd -x -D "cn=someuser,dc=somedc,dc=edu,dc=co" -W -f respaldo
NOTE: It's assumed that the administrative user is cn=someuser,dc=somedc,dc=edu,dc=co