1*0a6a1f1dSLionel Sambuc.\" $NetBSD: iprop.8,v 1.4 2014/04/24 13:45:34 pettai Exp $ 2ebfedea0SLionel Sambuc.\" 3ebfedea0SLionel Sambuc.\" Id 4ebfedea0SLionel Sambuc.\" 5ebfedea0SLionel Sambuc.\" Copyright (c) 2005 Kungliga Tekniska Högskolan 6ebfedea0SLionel Sambuc.\" (Royal Institute of Technology, Stockholm, Sweden). 7ebfedea0SLionel Sambuc.\" All rights reserved. 8ebfedea0SLionel Sambuc.\" 9ebfedea0SLionel Sambuc.\" Redistribution and use in source and binary forms, with or without 10ebfedea0SLionel Sambuc.\" modification, are permitted provided that the following conditions 11ebfedea0SLionel Sambuc.\" are met: 12ebfedea0SLionel Sambuc.\" 13ebfedea0SLionel Sambuc.\" 1. Redistributions of source code must retain the above copyright 14ebfedea0SLionel Sambuc.\" notice, this list of conditions and the following disclaimer. 15ebfedea0SLionel Sambuc.\" 16ebfedea0SLionel Sambuc.\" 2. Redistributions in binary form must reproduce the above copyright 17ebfedea0SLionel Sambuc.\" notice, this list of conditions and the following disclaimer in the 18ebfedea0SLionel Sambuc.\" documentation and/or other materials provided with the distribution. 19ebfedea0SLionel Sambuc.\" 20ebfedea0SLionel Sambuc.\" 3. Neither the name of the Institute nor the names of its contributors 21ebfedea0SLionel Sambuc.\" may be used to endorse or promote products derived from this software 22ebfedea0SLionel Sambuc.\" without specific prior written permission. 23ebfedea0SLionel Sambuc.\" 24ebfedea0SLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 25ebfedea0SLionel Sambuc.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26ebfedea0SLionel Sambuc.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27ebfedea0SLionel Sambuc.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 28ebfedea0SLionel Sambuc.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29ebfedea0SLionel Sambuc.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30ebfedea0SLionel Sambuc.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31ebfedea0SLionel Sambuc.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32ebfedea0SLionel Sambuc.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33ebfedea0SLionel Sambuc.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34ebfedea0SLionel Sambuc.\" SUCH DAMAGE. 35ebfedea0SLionel Sambuc.\" 36ebfedea0SLionel Sambuc.Dd May 24, 2005 37ebfedea0SLionel Sambuc.Dt IPROP 8 38ebfedea0SLionel Sambuc.Os 39ebfedea0SLionel Sambuc.Sh NAME 40ebfedea0SLionel Sambuc.Nm iprop , 41ebfedea0SLionel Sambuc.Nm ipropd-master , 42ebfedea0SLionel Sambuc.Nm ipropd-slave 43ebfedea0SLionel Sambuc.Nd propagate changes to a Heimdal Kerberos master KDC to slave KDCs 44ebfedea0SLionel Sambuc.Sh SYNOPSIS 45ebfedea0SLionel Sambuc.Nm ipropd-master 46ebfedea0SLionel Sambuc.Oo Fl c Ar string \*(Ba Xo 47ebfedea0SLionel Sambuc.Fl Fl config-file= Ns Ar string 48ebfedea0SLionel Sambuc.Xc 49ebfedea0SLionel Sambuc.Oc 50ebfedea0SLionel Sambuc.Oo Fl r Ar string \*(Ba Xo 51ebfedea0SLionel Sambuc.Fl Fl realm= Ns Ar string 52ebfedea0SLionel Sambuc.Xc 53ebfedea0SLionel Sambuc.Oc 54ebfedea0SLionel Sambuc.Oo Fl k Ar kspec \*(Ba Xo 55ebfedea0SLionel Sambuc.Fl Fl keytab= Ns Ar kspec 56ebfedea0SLionel Sambuc.Xc 57ebfedea0SLionel Sambuc.Oc 58ebfedea0SLionel Sambuc.Oo Fl d Ar file \*(Ba Xo 59ebfedea0SLionel Sambuc.Fl Fl database= Ns Ar file 60ebfedea0SLionel Sambuc.Xc 61ebfedea0SLionel Sambuc.Oc 62ebfedea0SLionel Sambuc.Op Fl Fl slave-stats-file= Ns Ar file 63ebfedea0SLionel Sambuc.Op Fl Fl time-missing= Ns Ar time 64ebfedea0SLionel Sambuc.Op Fl Fl time-gone= Ns Ar time 65ebfedea0SLionel Sambuc.Op Fl Fl detach 66ebfedea0SLionel Sambuc.Op Fl Fl version 67ebfedea0SLionel Sambuc.Op Fl Fl help 68ebfedea0SLionel Sambuc.Nm ipropd-slave 69ebfedea0SLionel Sambuc.Oo Fl c Ar string \*(Ba Xo 70ebfedea0SLionel Sambuc.Fl Fl config-file= Ns Ar string 71ebfedea0SLionel Sambuc.Xc 72ebfedea0SLionel Sambuc.Oc 73ebfedea0SLionel Sambuc.Oo Fl r Ar string \*(Ba Xo 74ebfedea0SLionel Sambuc.Fl Fl realm= Ns Ar string 75ebfedea0SLionel Sambuc.Xc 76ebfedea0SLionel Sambuc.Oc 77ebfedea0SLionel Sambuc.Oo Fl k Ar kspec \*(Ba Xo 78ebfedea0SLionel Sambuc.Fl Fl keytab= Ns Ar kspec 79ebfedea0SLionel Sambuc.Xc 80ebfedea0SLionel Sambuc.Oc 81ebfedea0SLionel Sambuc.Op Fl Fl time-lost= Ns Ar time 82ebfedea0SLionel Sambuc.Op Fl Fl detach 83ebfedea0SLionel Sambuc.Op Fl Fl version 84ebfedea0SLionel Sambuc.Op Fl Fl help 85ebfedea0SLionel Sambuc.Ar master 86ebfedea0SLionel Sambuc.Sh DESCRIPTION 87ebfedea0SLionel Sambuc.Nm ipropd-master 88ebfedea0SLionel Sambucis used to propagate changes to a Heimdal Kerberos database from the 89ebfedea0SLionel Sambucmaster Kerberos server on which it runs to slave Kerberos servers 90ebfedea0SLionel Sambucrunning 91ebfedea0SLionel Sambuc.Nm ipropd-slave . 92ebfedea0SLionel Sambuc.Pp 93ebfedea0SLionel SambucThe slaves are specified by the contents of the 94ebfedea0SLionel Sambuc.Pa slaves 95ebfedea0SLionel Sambucfile in the KDC's database directory, e.g.\& 96ebfedea0SLionel Sambuc.Pa /var/heimdal/slaves . 97ebfedea0SLionel SambucThis has principals one per-line of the form 98ebfedea0SLionel Sambuc.Dl iprop/ Ns Ar slave Ns @ Ns Ar REALM 99ebfedea0SLionel Sambucwhere 100ebfedea0SLionel Sambuc.Ar slave 101ebfedea0SLionel Sambucis the hostname of the slave server in the given 102ebfedea0SLionel Sambuc.Ar REALM , 103ebfedea0SLionel Sambuce.g.\& 104ebfedea0SLionel Sambuc.Dl iprop/kerberos-1.example.com@EXAMPLE.COM 105ebfedea0SLionel SambucOn a slave, the argument 106ebfedea0SLionel Sambuc.Fa master 107ebfedea0SLionel Sambucspecifies the hostname of the master server from which to receive updates. 108ebfedea0SLionel Sambuc.Pp 109ebfedea0SLionel SambucIn contrast to 110ebfedea0SLionel Sambuc.Xr hprop 8 , 111ebfedea0SLionel Sambucwhich sends the whole database to the slaves regularly, 112ebfedea0SLionel Sambuc.Nm 113ebfedea0SLionel Sambucnormally sends only the changes as they happen on the master. 114ebfedea0SLionel SambucThe master keeps track of all the changes by assigning a version 115ebfedea0SLionel Sambucnumber to every change to the database. 116ebfedea0SLionel SambucThe slaves know which was the latest version they saw, and in this 117ebfedea0SLionel Sambucway it can be determined if they are in sync or not. 118ebfedea0SLionel SambucA log of all the changes is kept on the master. 119ebfedea0SLionel SambucWhen a slave is at an older version than the oldest one in the log, 120ebfedea0SLionel Sambucthe whole database has to be sent. 121ebfedea0SLionel Sambuc.Pp 122ebfedea0SLionel SambucThe changes are propagated over a secure channel (on port 2121 by 123ebfedea0SLionel Sambucdefault). 124ebfedea0SLionel SambucThis should normally be defined as 125ebfedea0SLionel Sambuc.Dq iprop/tcp 126ebfedea0SLionel Sambucin 127ebfedea0SLionel Sambuc.Pa /etc/services 128ebfedea0SLionel Sambucor another source of the services database. 129ebfedea0SLionel SambucThe master and slaves 130ebfedea0SLionel Sambucmust each have access to a keytab with keys for the 131ebfedea0SLionel Sambuc.Nm iprop 132ebfedea0SLionel Sambucservice principal on the local host. 133ebfedea0SLionel Sambuc.Pp 134ebfedea0SLionel SambucThere is a keep-alive feature logged in the master's 135ebfedea0SLionel Sambuc.Pa slave-stats 136ebfedea0SLionel Sambucfile (e.g.\& 137ebfedea0SLionel Sambuc.Pa /var/heimdal/slave-stats ) . 138ebfedea0SLionel Sambuc.Pp 139ebfedea0SLionel SambucSupported options for 140ebfedea0SLionel Sambuc.Nm ipropd-master : 141ebfedea0SLionel Sambuc.Bl -tag -width Ds 142ebfedea0SLionel Sambuc.It Fl c Ar string , Fl Fl config-file= Ns Ar string 143ebfedea0SLionel Sambuc.It Fl r Ar string , Fl Fl realm= Ns Ar string 144ebfedea0SLionel Sambuc.It Fl k Ar kspec , Fl Fl keytab= Ns Ar kspec 145ebfedea0SLionel Sambuckeytab to get authentication from 146ebfedea0SLionel Sambuc.It Fl d Ar file , Fl Fl database= Ns Ar file 147ebfedea0SLionel SambucDatabase (default per KDC) 148ebfedea0SLionel Sambuc.It Fl Fl slave-stats-file= Ns Ar file 149ebfedea0SLionel Sambucfile for slave status information 150ebfedea0SLionel Sambuc.It Fl Fl time-missing= Ns Ar time 151ebfedea0SLionel Sambuctime before slave is polled for presence (default 2 min) 152ebfedea0SLionel Sambuc.It Fl Fl time-gone= Ns Ar time 153ebfedea0SLionel Sambuctime of inactivity after which a slave is considered gone (default 5 min) 154ebfedea0SLionel Sambuc.It Fl Fl detach 155ebfedea0SLionel Sambucdetach from console 156ebfedea0SLionel Sambuc.It Fl Fl version 157ebfedea0SLionel Sambuc.It Fl Fl help 158ebfedea0SLionel Sambuc.El 159ebfedea0SLionel Sambuc.Pp 160ebfedea0SLionel SambucSupported options for 161ebfedea0SLionel Sambuc.Nm ipropd-slave : 162ebfedea0SLionel Sambuc.Bl -tag -width Ds 163ebfedea0SLionel Sambuc.It Fl c Ar string , Fl Fl config-file= Ns Ar string 164ebfedea0SLionel Sambuc.It Fl r Ar string , Fl Fl realm= Ns Ar string 165ebfedea0SLionel Sambuc.It Fl k Ar kspec , Fl Fl keytab= Ns Ar kspec 166ebfedea0SLionel Sambuckeytab to get authentication from 167ebfedea0SLionel Sambuc.It Fl Fl time-lost= Ns Ar time 168ebfedea0SLionel Sambuctime before server is considered lost (default 5 min) 169ebfedea0SLionel Sambuc.It Fl Fl detach 170ebfedea0SLionel Sambucdetach from console 171ebfedea0SLionel Sambuc.It Fl Fl version 172ebfedea0SLionel Sambuc.It Fl Fl help 173ebfedea0SLionel Sambuc.El 174ebfedea0SLionel SambucTime arguments for the relevant options above may be specified in forms 175ebfedea0SLionel Sambuclike 5 min, 300 s, or simply a number of seconds. 176ebfedea0SLionel Sambuc.Sh FILES 177ebfedea0SLionel Sambuc.Pa slaves , 178ebfedea0SLionel Sambuc.Pa slave-stats 179ebfedea0SLionel Sambucin the database directory. 180ebfedea0SLionel Sambuc.Sh SEE ALSO 181ebfedea0SLionel Sambuc.Xr krb5.conf 5 , 182ebfedea0SLionel Sambuc.Xr hprop 8 , 183ebfedea0SLionel Sambuc.Xr hpropd 8 , 184ebfedea0SLionel Sambuc.Xr iprop-log 8 , 185ebfedea0SLionel Sambuc.Xr kdc 8 . 186