Node:Propagate the Database to Each Slave KDC, Previous:Back on the Master KDC, Up:Back on the Master KDC

Propagate the Database to Each Slave KDC

First, create a dump of the database on the master KDC, as follows:

     shell% /usr/local/sbin/kdb5_util dump /usr/local/var/krb5kdc/slave_datatrans

Next, you need to manually propagate the database to each slave KDC, as in the following example. (The lines beginning with => are continuations of the previous line.):

     /usr/local/sbin/kprop -f /usr/local/var/krb5kdc/slave_datatrans
     /usr/local/sbin/kprop -f /usr/local/var/krb5kdc/slave_datatrans

You will need a script to dump and propagate the database. The following is an example of a bourne shell script that will do this. (Note that the line that begins with => is a continuation of the previous line. Remember that you need to replace /usr/local with the name of the directory in which you installed Kerberos V5.)

     kdclist = ""
     /usr/local/sbin/kdb5_util "dump
     => /usr/local/var/krb5kdc/slave_datatrans"
     for kdc in $kdclist
     /usr/local/sbin/kprop -f /usr/local/var/krb5kdc/slave_datatrans $kdc

You will need to set up a cron job to run this script at the intervals you decided on earlier (See Database Propagation.)