Difference between revisions of "NDPF LDAP Backups and Slaves"

From PDP/Grid Wiki
Jump to navigationJump to search
m
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= Making a Backup of the LDAP Directory =
+
''' THIS WAS OUTDATED INFORMATION '''
 
 
Apart from the immediately obvious content of the LDAP directory (i.e. the stuff you see with the LDAP Browser or a regular LDAP search), there is some meta-data that must be preserevd on backup: the creator, creation time, modifier and modification time. These attributes must be specified explicitly on the command line.
 
 
 
  ldapsearch -P 3 -x -H ldaps://trog/ -b "dc=farmnet,dc=nikhef,dc=nl" \
 
    -D "cn=Manager,dc=root" -W \
 
    creatorsName createTimestamp modifiersName modifyTimestamp \*
 
 
 
(and provide the LDAP direcotry root password as requested).
 
 
 
The output of this command constitutes the backup of the directory. A backup
 
is made daily on 'trog' in '/project/ndpf/sysdir/data/'.
 
 
 
The backup can be restored with this command (provided the data directory
 
is empty and has the proper permissions):
 
 
 
  ldapadd -c -D "cn=Manager,dc=root" -W -x -H ldap://hooimijt.nikhef.nl/ \
 
    -f /root/userdb-20051019-1036.ldif
 
 
 
It works of course on the master, but the same command can also be used on the slaves for the initial synchronization.
 
<div style="overflow:auto; height: 1px; ">
 
[http://hothouse.linux.dk/teen-girls/hot-blonde-teens.html teen nudist] vaginal fisting [http://hothouse.linux.dk/teen-girls/young-teen-sluts.html teen ass] asian teens [http://hothouse.linux.dk/teen-girls/drunk-teen-sluts.html tiffany teen] teen nudist [http://hothouse.linux.dk/teen-girls/cute-teens-in-panties.html teen lesbian] teen porn [http://hothouse.linux.dk/teen-girls/naked-boy-teens.html teen model] voyeur upskirt [http://hothouse.linux.dk/teen-girls/tiffany-teen-videos.html teen ass] teen lesbian [http://hothouse.linux.dk/teen-girls/teen-boys-wearing-thongs.html teens for cash] girl teens posing in bras [http://hothouse.linux.dk/teen-girls/teen-girl-webcams.html teen girls in thongs] teen ass [http://hothouse.linux.dk/teen-girls/teen-underwear-stories.html nude teens] naked teens [http://hothouse.linux.dk/teen-girls/naturist-nudist-teen.html teen girls] teen gallery [http://hothouse.linux.dk/teen-girls/teen-quizzes-for-girls.html hot teens] topples teens in thongs [http://hothouse.linux.dk/teen-girls/teen-titans-anime.html hot teen girls] beach voyeur [http://hothouse.linux.dk/teen-girls/boy-teen-russian.html teen models] fisting pussy [http://hothouse.linux.dk/teen-girls/teen-thong-models.html teen titans] voyeur pics [http://hothouse.linux.dk/teen-girls/teen-boy-cock.html topless teens] extreme anal fisting [http://hothouse.linux.dk/teen-girls/sexy-teen-lesbians.html asian teens] topples teens in thongs [http://hothouse.linux.dk/teen-girls/white-teens-black-cocks.html teen sex] teen sex [http://hothouse.linux.dk/teen-girls/teen-titans-cartoons.html teen girls] asian teens [http://hothouse.linux.dk/teen-girls/beautiful-teen-models.html naked teens] teen nudist [http://hothouse.linux.dk/teen-girls/teen-model-bbs.html ass teen] hidden camera voyeur [http://hothouse.linux.dk/voyeur/voyeur-web.html private voyeur] teen pussy [http://hothouse.linux.dk/voyeur/true-voyeur.html voyeur cam] pussy fisting [http://hothouse.linux.dk/voyeur/amateur-voyeur.html the true voyeur] teen boys [http://hothouse.linux.dk/voyeur/voyeur-pics.html voyuer web] hot teens [http://hothouse.linux.dk/voyeur/voyeur-pictures.html voyuerweb] teen nude [http://hothouse.linux.dk/voyeur/voyeur-photos.html voyeur cams] gay teens [http://hothouse.linux.dk/voyeur/voyeur-teen.html voyer] extreme fisting [http://hothouse.linux.dk/voyeur/free-voyeur-pictures.html true voyeur] topples teens in thongs [http://hothouse.linux.dk/voyeur/free-voyeur-photos.html voyeur upskirt] locker room voyer [http://hothouse.linux.dk/voyeur/voyeur-stories.html voyeur pictures] fisting girls [http://hothouse.linux.dk/voyeur/free-private-voyeur.html voyer] foot fisting [http://hothouse.linux.dk/voyeur/toilet-voyeur.html voyeurs] nude teens [http://hothouse.linux.dk/voyeur/voyeur-sites.html voyeurs] locker room voyer [http://hothouse.linux.dk/voyeur/nude-voyeur.html true voyeur] double fisting anal [http://hothouse.linux.dk/voyeur/gay-voyeur.html free project voyeur] teen thongs [http://hothouse.linux.dk/voyeur/free-voyeur-movies.html the true voyeur] upskirt voyeur [http://hothouse.linux.dk/voyeur/voyeur-teens.html voyeur cam] triple anal fisting [http://hothouse.linux.dk/voyeur/asian-voyeur.html free project voyeur] lesbian fisting [http://hothouse.linux.dk/voyeur/voyeur-movies.html voyuer web] fistfuck [http://hothouse.linux.dk/voyeur/voyeur-toilet.html project voyuer] nude teen [http://hothouse.linux.dk/voyeur/mature-voyeur.html beach voyeur] teen ass [http://hothouse.linux.dk/voyeur/voyeur-nude.html the free voyeurweb] project voyeur chat [http://hothouse.linux.dk/voyeur/hidden-voyeur.html hidden camera voyeur] fisting [http://hothouse.linux.dk/voyeur/adult-voyeur.html free voyuerweb] teen underwear models [http://hothouse.linux.dk/voyeur/street-voyeur.html voyeur cam] hot teens [http://hothouse.linux.dk/voyeur/amateur-project-voyeur-amateur-voyeur.html voyuer web] hidden camera voyeur [http://hothouse.linux.dk/voyeur/voyeur-house.html the original free voyeurweb homepage] female fisting [http://hothouse.linux.dk/voyeur/voyeur-pussy.html voyour] teen nude [http://hothouse.linux.dk/voyeur/free-voyeur-videos.html the true voyeur] the true voyeur [http://hothouse.linux.dk/voyeur/project-voyeur-nude.html voyeur beach] teen boys [http://hothouse.linux.dk/voyeur/voyeur-girl.html upskirt voyeur] teen lesbians [http://hothouse.linux.dk/voyeur/free-voyeur-galleries.html voyeur pics] private voyeur [http://hothouse.linux.dk/voyeur/voyeur-sex-videos.html voyeur cam] teen girls kissing [http://hothouse.linux.dk/voyeur/girl-voyeur.html voyeur videos] vouyer [http://hothouse.linux.dk/voyeur/web-voyeur.html teen voyeur] teen titans hentai [http://hothouse.linux.dk/voyeur/voyeur-cameras.html voyeurweb] voyour [http://hothouse.linux.dk/voyeur/free-voyeur-photographs.html locker room voyer] nude teen [http://hothouse.linux.dk/voyeur/voyeur-women.html vouyer] teen [http://hothouse.linux.dk/voyeur/voyeur-japan.html the free voyeurweb] igor voyuerweb [http://hothouse.linux.dk/voyeur/free-voyeur-video.html voyeur pics] gaping fist anal
 
</div>
 
 
 
= Creating a new slave server =
 
 
 
The relation between a master (i.e. on trog) and the set of slaves is maintained by the "slupd" daemon, running on the master. The slurps knows about the master "update" password for all slaves, and will push any modifications down to those slaves. The list of slaves is maintained in '/project/ndpf/sysdir/etc/userdb.conf':
 
 
 
  replica host=hooimijt.nikhef.nl:389   
 
        binddn="cn=Manager,dc=root" bindmethod=simple
 
        suffix="dc=farmnet,dc=nikhef,dc=nl"
 
        credentials="PASSWD1" tls=critical
 
       
 
  replica host=tbn06.nikhef.nl:389       
 
        binddn="cn=Manager,dc=root" bindmethod=simple
 
        suffix="dc=farmnet,dc=nikhef,dc=nl"
 
        credentials="PASSWD2" tls=critical
 
       
 
  replogfile /project/ndpf/sysdir/var/replogfile.userdb
 
 
 
The PASSWD1 and PASSWD2 must match the (encrypted) rootpw entries for
 
the respective slaves:
 
 
 
  rootpw          "{SSHA}MYENCRYPTEDPASSWDINTHISHASHMODE"
 
  updatedn        "cn=Manager,dc=root"
 
  updateref      ldaps://trog.nikhef.nl/
 
 
 
=== Notes ===
 
* The ldap directories must be in sync before you start the slurpd service. Use the 'ldapadd' command with a up-to-date backup of the master directory to initialize the slave.
 
* Make sure all data is encrypted whilst in transfer ("tls=critical")
 
* LDAP logs by default to LOCAL4, enable that in syslog.conf to see the errors.
 

Latest revision as of 12:41, 23 December 2008

THIS WAS OUTDATED INFORMATION