<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>SetupNewKrbServer</title><revhistory><revision><revnumber>8</revnumber><date>2011-04-23 00:39:17</date><authorinitials>ClintonEbadi</authorinitials><revremark>Revert to revision 6.</revremark></revision><revision><revnumber>7</revnumber><date>2011-04-23 00:26:21</date><authorinitials>28.e6.85ae.static.theplanet.com</authorinitials><revremark>kaZ8G6  &lt;a href=&quot;http://jumjwemsqndy.com/&quot;&gt;jumjwemsqndy&lt;/a&gt;</revremark></revision><revision><revnumber>6</revnumber><date>2011-04-22 23:13:39</date><authorinitials>ClintonEbadi</authorinitials><revremark>Revert to revision 4.</revremark></revision><revision><revnumber>5</revnumber><date>2011-04-22 12:13:03</date><authorinitials>host-1.219.om.nwlgcore.org</authorinitials><revremark>With the bases leodad you struck us out with that answer!</revremark></revision><revision><revnumber>4</revnumber><date>2010-11-29 08:27:07</date><authorinitials>DavorOcelic</authorinitials></revision><revision><revnumber>3</revnumber><date>2009-09-23 07:30:39</date><authorinitials>DavorOcelic</authorinitials></revision><revision><revnumber>2</revnumber><date>2009-09-23 07:28:51</date><authorinitials>DavorOcelic</authorinitials></revision><revision><revnumber>1</revnumber><date>2009-09-23 07:27:27</date><authorinitials>78-2-84-198.adsl.net.t-com.hr</authorinitials></revision></revhistory></articleinfo><section><title>New Krb slave setup</title><para>There's not much work to do when setting up Kerberos slave server, but there are some caveats. The procedure is as follows: </para><itemizedlist><listitem><para>Setup krb client first as documented on <ulink url="https://wiki.hcoop.net/SetupNewKrbServer/SetupNewMachines#">SetupNewMachines</ulink> </para></listitem><listitem><para>Install krb5-kdc on the server </para></listitem><listitem><para>Copy <emphasis>/etc/krb5kdc/kdc.conf</emphasis> from Hopper </para></listitem><listitem><para>Edit <emphasis>/etc/krb5kdc/kpropd.acl</emphasis> on all master and slave machines to list all Krb servers </para></listitem><listitem><para>Enable kpropd server in <emphasis>/etc/inetd.conf</emphasis> on the slave </para></listitem></itemizedlist><para>Then, attempt first database propagation from master server to new slave (the attempt will exit with an error because the database is not created on the slave server. And it shouldn't have to be, but it's currently a known bug in Krb -- or it may have been fixed in Krb 1.8, but see yourself): </para><screen><![CDATA[kdb5_util dump /var/lib/krb5kdc/slave_datatrans
kprop NEWMACHINE.hcoop.net]]></screen><para>Then, on slave, go to /var/lib/krb5kdc/ and do the following to create the database: </para><itemizedlist><listitem><para>Remove all temporary files in there (<emphasis role="strong">rm *~*</emphasis>) </para></listitem><listitem><para>Load database with <emphasis role="strong">kdb5_util load from_master</emphasis> </para></listitem><listitem><para>Restart KDC <emphasis role="strong">/etc/init.d/krb5-kdc restart</emphasis> </para></listitem></itemizedlist><para>After that, retry <emphasis role="strong">kprop</emphasis> which should succeed. </para><para>Finally, edit <emphasis>/afs/hcoop.net/common/etc/scripts/hcoop-kprop</emphasis> and add section which propagates database to new machine, then <emphasis role="strong">tail -f /var/log/syslog</emphasis> on the slave and expect messages like this: </para><screen><![CDATA[Sep 23 07:24:01 hopper kpropd[22567]: Connection from deleuze.hcoop.net
Sep 23 07:25:01 hopper kpropd[22569]: Connection from deleuze.hcoop.net
Sep 23 07:26:01 hopper kpropd[22571]: Connection from deleuze.hcoop.net]]></screen><para>And, edit <emphasis>/afs/hcoop.net/user/h/hc/hcoop/.domtool/hcoop.net</emphasis> to add appropriate DNS entries for the new Krb server. To apply changes, cd into that .domtool directory and run <emphasis role="strong">DOMTOOL_USER=hcoop domtool hcoop.net</emphasis>. </para></section></article>