1 .\" Copyright (c) 2000 - 2004 Kungliga Tekniska Högskolan
2 .\" (Royal Institute of Technology, Stockholm, Sweden).
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the Institute nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" $Heimdal: hprop.8 20456 2007-04-19 20:29:42Z lha $
33 .\" $NetBSD: hprop.8,v 1.10 2008/11/07 16:51:27 wiz Exp $
40 .Nd propagate the KDC database
44 .Oo Fl m Ar file \*(Ba Xo
45 .Fl -master-key= Ns Pa file
48 .Oo Fl d Ar file \*(Ba Xo
49 .Fl -database= Ns Pa file
52 .Op Fl -source= Ns Ar heimdal|mit-dump|krb4-dump|kaserver
53 .Oo Fl r Ar string \*(Ba Xo
54 .Fl -v4-realm= Ns Ar string
57 .Oo Fl c Ar cell \*(Ba Xo
61 .Op Fl S | Fl -kaspecials
62 .Oo Fl k Ar keytab \*(Ba Xo
63 .Fl -keytab= Ns Ar keytab
66 .Oo Fl R Ar string \*(Ba Xo
67 .Fl -v5-realm= Ns Ar string
70 .Op Fl D | Fl -decrypt
71 .Op Fl E | Fl -encrypt
73 .Op Fl v | Fl -verbose
76 .Op Ar host Ns Op : Ns Ar port
81 takes a principal database in a specified format and converts it into
82 a stream of Heimdal database records. This stream can either be
83 written to standard out, or (more commonly) be propagated to a
85 server running on a different machine.
87 If propagating, it connects to all
89 specified on the command by opening a TCP connection to port 754
90 (service hprop) and sends the database in encrypted form.
94 .It Fl m Ar file , Fl -master-key= Ns Pa file
95 Where to find the master key to encrypt or decrypt keys with.
96 .It Fl d Ar file , Fl -database= Ns Pa file
97 The database to be propagated.
98 .It Fl -source= Ns Ar heimdal|mit-dump|krb4-dump|kaserver
99 Specifies the type of the source database. Alternatives include:
101 .Bl -tag -width krb4-dump -compact -offset indent
105 a MIT Kerberos 5 dump file
107 a Kerberos 4 dump file
109 an AFS kaserver database
111 .It Fl k Ar keytab , Fl -keytab= Ns Ar keytab
112 The keytab to use for fetching the key to be used for authenticating
113 to the propagation daemon(s). The key
115 is used from this keytab. The default is to fetch the key from the
117 .It Fl R Ar string , Fl -v5-realm= Ns Ar string
118 Local realm override.
119 .It Fl D , Fl -decrypt
120 The encryption keys in the database can either be in clear, or
121 encrypted with a master key. This option transmits the database with
123 .It Fl E , Fl -encrypt
124 This option transmits the database with encrypted keys.
125 .It Fl n , Fl -stdout
126 Dump the database on stdout, in a format that can be fed to hpropd.
129 The following options are only valid if
131 is compiled with support for Kerberos 4 (kaserver).
133 .It Fl r Ar string , Fl -v4-realm= Ns Ar string
135 .It Fl c Ar cell , Fl -cell= Ns Ar cell
136 The AFS cell name, used if reading a kaserver database.
137 .It Fl S , Fl -kaspecials
138 Also dump the principals marked as special in the kaserver database.
140 Deprecated, identical to
141 .Sq --source=kaserver .
144 The following will propagate a database to another machine (which
147 .Bd -literal -offset indent
148 $ hprop slave-1 slave-2
151 Convert a Kerberos 4 dump-file for use with a Heimdal KDC:
152 .Bd -literal -offset indent
153 $ hprop -n --source=krb4-dump -d /var/kerberos/principal.dump \e
154 --master-key=/.k | hpropd -n