LDAP Server Migration

From Supercomputación y Cálculo Científico UIS
Revision as of 19:08, 22 November 2014 by Sgelvez (talk | contribs) (New page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Back to: LDAP

Creating LDAP Server Migration

1) In the source server, backup the DB with the command

slapcat > respaldo.raw

2) Elimite 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=admin,dc=uis,dc=edu,dc=co" -W -f respaldo

Nota:

Se supone que el usuario de administración es: cn=admin,dc=uis,dc=edu,dc=co