| United States-English |
|
|
|
![]() |
Installing, Configuring and Administering the Kerberos Server on HP-UX 11i: HP 9000 Networking > Chapter 3 Configuration Configuring the Slave KDC |
|
You are now ready to start configuring the slave KDC. Assuming that you are setting up the KDC so that you can easily switch the master KDC with one of the slaves, you should perform each of these steps on the master KDC as well as the slave KDC. Each KDC needs a host service principal in the Kerberos database. You can create these from any host, once the kadmind daemon is running. For example, if your master KDC runs on a machine named "rabbit.finance.bambi.com", and you now want to configure the KDC slave server on the machine named "kdc1.finance.bambi.com", you would need to do the following: Now on rabbit.finance.bambi.com, you need to do the following: The lines beginning with => is a continuation with the previous line. Now on kdc1.finance.bambi.com, you need to do the following:
The database is propagated from the master KDC to the slave KDC using kprop and kpropd. To set up propagation, create a file on each KDC, named /var/adm/krb5/krb5kdc/kpropd.acl, containing the principals for each of the KDCs. The kpropd.acl, is the access file for kpropd. Each entry in this file is a line containing a principal of a host from which the local machine will allow the Kerberos database propagation via kprop. The general syntax for this is: For example, for the master KDC named "rabbit.finance.bambi.com", and the slave KDC named "kdc1.finance.bambi.com" and for the realm named "finance.bambi.com" the kpropd.acl's file contents on the slave server - "kdc1.finance.bambi.com" would be: host/rabbit.finance.bambi.com@finance.bambi.com The contents of the kpropd.acl file on the master KDC named, "rabbit.finance.bambi.com" would be: host/kdc1.finance.bambi.com@finance.bambi.com Then, add the following line to /etc/inetd.conf on each KDC.
This line sets up the kpropd database propagation daemon. Now run the /etc/inetd -c command to restart the inetd. You also need to add the following lines to /etc/services on each KDC:
Back on the Master KDC Now that the slave KDC is able to accept database propagation, you will need to propagate the database to the slave KDC. First, create a dump of the database on the master KDC, as follows: The lines beginning with => is a continuation with the previous line.
Next, you need to manually propagate the database on the slave KDC, as in the following example. The lines beginning with => is a continuation with the previous line.
You can write a script to dump and propagate the database. The following is an example of a bourne shell script that will do this. The lines beginning with => is a continuation with the previous line.
You can set up a cron job to run this job at suitable intervals on the frequency of change. Now that the slave KDCs have copies of the Kerberos database, you can create stash files for them and start the krb5kdc daemon. Create a stash file, by issuing the following command on the slave KDC:
As mentioned above, the stash file is necessary for your KDCs to be able to authenticate to themselves, such as when they reboot. You could run your krb5kdc without stash files, but you would need to type in the Kerberos database master key every time you start a krb5kdc daemon. The final step in configuring your slave KDCs is to run the KDC daemon:
You may occasionally want to use of one of your slave KDCs as the master. This might happen if you are upgrading the master KDC, or if your master KDC has experienced a problem. Assuming you have configured your KDCs to be able to function as either the master KDC or a slave KDC, all you need to do to make this changeover is: If the kadmind is still running on the master KDC, stop the kadmind process and do the following on the master KDC:
Now, on the new master KDC:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||