Difference between revisions of "LDAP Server Migration"

From Supercomputación y Cálculo Científico UIS
(New page)
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
Back to: [[LDAP]]
+
__NOTOC__
  
= Creating LDAP Server Migration =
+
<div class="thumbnail img-thumbnail">http://wiki.sc3.uis.edu.co/images/a/a8/Logo_sc33.png</div>
 +
<p><div class="btn btn-primary"><i class="fa  fa-long-arrow-left"></i> [[LDAP]]</div></p>
 +
 
 +
<div class="col-md-14">
 +
    <div class="panel panel-darker-white-border">
 +
        <div class="panel-heading">
 +
            <h3 class="panel-title">Creating LDAP Server Migration</h3>
 +
        </div>
 +
        <div class="panel-body">
 +
            <p>
  
 
1) In the source server, backup the DB with the command
 
1) In the source server, backup the DB with the command
 
+
{{Command|<nowiki>slapcat > respaldo.raw</nowiki>}}
slapcat > respaldo.raw
+
2) Eliminate the structural components from the backup file
 
+
{{Command|<nowiki>egrep -v  "^(structuralObjectClass|entryUUID|creatorsName|modifiersName|createTimestamp|modifyTimestamp|entryCSN):" respaldo.raw > respaldo</nowiki>}}
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
 
3) Copy the backup file to the destination server
  
 
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>}}
  
ldapadd -x -D "cn=admin,dc=uis,dc=edu,dc=co" -W -f respaldo
+
{{Note|<nowiki>It's assumed that the administrative user is cn=someuser,dc=somedc,dc=edu,dc=co</nowiki>}}
 
+
             
Nota:
+
            </p>
 
+
        </div>
Se supone que el usuario de administración es: cn=admin,dc=uis,dc=edu,dc=co
+
    </div>
 +
</div>

Latest revision as of 19:48, 9 April 2015


Logo_sc33.png

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