13.07.2015 Views

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 2 ■ CENTRALIZING YOUR NETWORK: KERBEROS, LDAP, AND NFS2-9. Setting Up Kerberos ReplicationJust as with LDAP, it’s a good idea to configure a second Kerberos server for backup purposes. WithKerberos, more than one server can act as a KDC and respond to auth requests, but only one canmanage changes to the database (the admin server).First of all, configure your second server as a Kerberos client (see recipes 2-1 and 2-2). Next, installkrb5-kdc and libkrb5-dev (not admin server).Edit /etc/krb.conf to include the following in the [realms] section under the relevant realm:kdc = krb_slave.example.comAlso add a logging section:[logging]kdc = FILE:/var/log/kerberos/krb5kdc.logdefault = FILE:/var/log/kerberos/krb5lib.logEdit /etc/krb5kdc/kpropd.acl to include names of both master and slave servers:host/kerberos.example.com@EXAMPLE.COMhost/krb_slave.example.com@EXAMPLE.COMExtract the host keys to the appropriate servers:• On the slave server:klist -k /etc/krb5.keytab• Ensure that it includes an entry for host/krb5_slave.example.com. If it’s missing,still from the slave server, run the following:kadmin -p krbadm• Check that there is a host/krb5_slave.example.com principal present in thedatabase. If not, run this:kadmin: addprinc -randkey host/krb5_slave.example.com• Extract the slave server’s key to the keytab:kadmin: ktadd host/krb5_slave.example.com• On the master server:klist -k /etc/krb5.keytab• Check that there is an entry for host/kerberos.example.com, and if not, create it asshown earlier.Next, you need to set up kpropd to run on the slave server. This can be done via inetd byuncommenting the following line in /etc/inetd.conf and then restarting inetd:krb5_prop stream tcp nowait root /usr/sbin/kpropd kpropd47Download at WoweBook.Com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!