Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man8 / kdb5_util.8
blobe8e16fde31fb24294564aebbc8b7cb14da82ca23
1 '\" te
2 .\" Copyright (c) 2001, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH KDB5_UTIL 8 "April 9, 2016"
7 .SH NAME
8 kdb5_util \- Kerberos Database maintenance utility
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/sbin/kdb5_util\fR  [\fB-d\fR \fIdbname\fR] [\fB-f\fR \fIstashfile_name\fR]
13      [\fB-k\fR \fImkeytype\fR] [\fB-m\fR ] [\fB-M\fR \fImkeyname\fR] [\fB-P\fR \fIpassword\fR] [\fB-r\fR \fIrealm\fR]
14      [\fB-x\fR \fIdb_args\fR]... \fIcmd\fR
15 .fi
17 .SH DESCRIPTION
18 .LP
19 The \fBkdb5_util\fR utility enables you to create, dump, load, and destroy the
20 Kerberos V5 database. You can also use \fBkdb5_util\fR to create a stash file
21 containing the Kerberos database master key.
22 .SH OPTIONS
23 .LP
24 The following options are supported:
25 .sp
26 .ne 2
27 .na
28 \fB\fB-d\fR \fIdbname\fR\fR
29 .ad
30 .sp .6
31 .RS 4n
32 Specify the database name. \fB\&.db\fR is appended to whatever name is
33 specified. You can specify an absolute path. If you do not specify the \fB-d\fR
34 option, the default database name is \fB/var/krb5/principal\fR.
35 .RE
37 .sp
38 .ne 2
39 .na
40 \fB\fB-f\fR \fIstashfile_name\fR\fR
41 .ad
42 .sp .6
43 .RS 4n
44 Specify the stash file name. You can specify an absolute path.
45 .RE
47 .sp
48 .ne 2
49 .na
50 \fB\fB-k\fR \fImkeytype\fR\fR
51 .ad
52 .sp .6
53 .RS 4n
54 Specify the master key type. Valid values are \fBdes3-cbc-sha1\fR,
55 \fBdes-cbc-crc\fR, \fBdes-cbc-md5\fR, \fBdes-cbc-raw\fR,
56 \fBarcfour-hmac-md5\fR, \fBarcfour-hmac-md5-exp\fR,
57 \fBaes128-cts-hmac-sha1-96\fR, and \fBaes256-cts-hmac-sha1-96\fR.
58 .RE
60 .sp
61 .ne 2
62 .na
63 \fB\fB-m\fR\fR
64 .ad
65 .sp .6
66 .RS 4n
67 Enter the master key manually.
68 .RE
70 .sp
71 .ne 2
72 .na
73 \fB\fB-M\fR \fImkeyname\fR\fR
74 .ad
75 .sp .6
76 .RS 4n
77 Specify the master key name.
78 .RE
80 .sp
81 .ne 2
82 .na
83 \fB\fB-P\fR \fIpassword\fR\fR
84 .ad
85 .sp .6
86 .RS 4n
87 Use the specified \fIpassword\fR instead of the stash file.
88 .RE
90 .sp
91 .ne 2
92 .na
93 \fB\fB-r\fR \fIrealm\fR\fR
94 .ad
95 .sp .6
96 .RS 4n
97 Use \fIrealm\fR as the default database realm.
98 .RE
101 .ne 2
103 \fB\fB-x\fR \fIdb_args\fR\fR
105 .sp .6
106 .RS 4n
107 Pass database-specific arguments to \fBkadmin\fR. Supported arguments are for
108 LDAP and the \fBBerkeley-db2\fR plug-in. These arguments are:
110 .ne 2
112 \fB\fBbinddn\fR=\fIbinddn\fR\fR
114 .sp .6
115 .RS 4n
116 LDAP simple bind DN for authorization on the directory server. Overrides the
117 \fBldap_kadmind_dn\fR parameter setting in \fBkrb5.conf\fR(4).
121 .ne 2
123 \fB\fBbindpwd\fR=\fIbindpwd\fR\fR
125 .sp .6
126 .RS 4n
127 Bind password.
131 .ne 2
133 \fB\fBdbname\fR=\fIname\fR\fR
135 .sp .6
136 .RS 4n
137 For the \fBBerkeley-db2\fR plug-in, specifies a name for the Kerberos database.
141 .ne 2
143 \fB\fBnconns\fR=\fInum\fR\fR
145 .sp .6
146 .RS 4n
147 Maximum number of server connections.
151 .ne 2
153 \fB\fBport\fR=\fInum\fR\fR
155 .sp .6
156 .RS 4n
157 Directory server connection port.
162 .SH OPERANDS
164 The following operands are supported:
166 .ne 2
168 \fB\fIcmd\fR\fR
170 .sp .6
171 .RS 4n
172 Specifies whether to create, destroy, dump, or load the database, or to create
173 a stash file.
175 You can specify the following commands:
177 .ne 2
179 \fB\fBcreate\fR \fB-s\fR\fR
181 .sp .6
182 .RS 4n
183 Creates the database specified by the \fB-d\fR option. You will be prompted for
184 the database master password. If you specify \fB-s\fR, a stash file is created
185 as specified by the \fB-f\fR option. If you did not specify \fB-f\fR, the
186 default stash file name is \fB/var/krb5/.k5.realm\fR. If you use the \fB-f\fR,
187 \fB-k\fR, or \fB-M\fR options when you create a database, then you must use the
188 same options when modifying or destroying the database.
192 .ne 2
194 \fB\fBdestroy\fR\fR
196 .sp .6
197 .RS 4n
198 Destroys the database specified by the \fB-d\fR option.
202 .ne 2
204 \fB\fBstash\fR\fR
206 .sp .6
207 .RS 4n
208 Creates a stash file. If \fB-f\fR was not specified, the default stash file
209 name is \fB/var/krb5/.k5.realm\fR. You will be prompted for the master database
210 password. This command is useful when you want to generate the stash file from
211 the password.
215 .ne 2
217 \fB\fBdump\fR [\fB-old\fR] [\fB-b6\fR] [\fB-b7\fR] [\fB-ov\fR] [\fB-verbose\fR]
218 [\fB-mkey_convert\fR] [\fB-new_mkey_file\fR \fImkey_file\fR] [\fB-rev\fR]
219 [\fB-recurse\fR] [\fIfilename\fR [\fIprincipals\fR...]]\fR
221 .sp .6
222 .RS 4n
223 Dumps the current Kerberos and KADM5 database into an ASCII file. By default,
224 the database is dumped in current format, "\fBkdb5_util load_dumpversion 5\fR".
225 If \fIfilename\fR is not specified or is the string "-", the dump is sent to
226 standard output. Options are as follows:
228 .ne 2
230 \fB\fB-old\fR\fR
232 .sp .6
233 .RS 4n
234 Causes the dump to be in the Kerberos 5 Beta 5 and earlier dump format
235 ("\fBkdb5_edit load_dump version 2.0\fR").
239 .ne 2
241 \fB\fB-b6\fR\fR
243 .sp .6
244 .RS 4n
245 Causes the dump to be in the Kerberos 5 Beta 6 format ("\fBkdb5_edit load_dump
246 version 3.0\fR").
250 .ne 2
252 \fB\fB-b7\fR\fR
254 .sp .6
255 .RS 4n
256 Causes the dump to be in the Kerberos 5 Beta 7 format ("\fBkdb5_util load_dump
257 version 4\fR"). This was the dump format produced on releases prior to 1.2.2.
261 .ne 2
263 \fB\fB-ov\fR\fR
265 .sp .6
266 .RS 4n
267 Causes the dump to be in \fBovsec_adm_export\fR format.
271 .ne 2
273 \fB\fB-verbose\fR\fR
275 .sp .6
276 .RS 4n
277 Causes the name of each principal and policy to be displayed as it is dumped.
281 .ne 2
283 \fB\fB-mkey_convert\fR\fR
285 .sp .6
286 .RS 4n
287 Prompts for a new master key. This new master key will be used to re-encrypt
288 the key data in the dumpfile. The key data in the database will not be changed.
292 .ne 2
294 \fB\fB-new_mkey_file\fR \fImkey_file\fR\fR
296 .sp .6
297 .RS 4n
298 The filename of a stash file. The master key in this stash file will be used to
299 re-encrypt the key data in the dumpfile. The key data in the database will not
300 be changed.
304 .ne 2
306 \fB\fB-rev\fR\fR
308 .sp .6
309 .RS 4n
310 Dumps in reverse order. This might recover principals that do not dump
311 normally, in cases where database corruption has occurred.
315 .ne 2
317 \fB\fB-recurse\fR\fR
319 .sp .6
320 .RS 4n
321 Causes the dump to walk the database recursively (\fBbtree\fR only). This might
322 recover principals that do not dump normally, in cases where database
323 corruption has occurred. In cases of such corruption, this option will probably
324 retrieve more principals than will the \fB-rev\fR option.
330 .ne 2
332 \fB\fBload\fR [\fB-old\fR] [\fB-b6\fR] [\fB-b7\fR] [\fB-ov\fR] [\fB-hash\fR]
333 [\fB-verbose\fR] [\fB-update\fR] \fIfilename\fR \fIdbname\fR
334 [\fIadmin_dbname\fR]\fR
336 .sp .6
337 .RS 4n
338 Loads a database dump from \fIfilename\fR into \fIdbname\fR. Unless the
339 \fB-old\fR or \fB-b6\fR option is specified, the format of the dump file is
340 detected automatically and handled appropriately. Unless the \fB-update\fR
341 option is specified, \fBload\fR creates a new database containing only the
342 principals in the dump file, overwriting the contents of any existing database.
343 The \fB-old\fR option requires the database to be in the Kerberos 5 Beta 5 or
344 earlier format ("\fBkdb5_edit load_dump version 2.0\fR").
346 .ne 2
348 \fB\fB-b6\fR\fR
350 .sp .6
351 .RS 4n
352 Requires the database to be in the Kerberos 5 Beta 6 format ("\fBkdb5_edit
353 load_dump version 3.0\fR").
357 .ne 2
359 \fB\fB-b7\fR\fR
361 .sp .6
362 .RS 4n
363 Requires the database to be in the Kerberos 5 Beta 7 format ("\fBkdb5_util
364 load_dump version 4\fR").
368 .ne 2
370 \fB\fB-ov\fR\fR
372 .sp .6
373 .RS 4n
374 Requires the database to be in \fBovsec_adm_import\fR format. Must be used with
375 the \fB-update\fR option.
379 .ne 2
381 \fB\fB-hash\fR\fR
383 .sp .6
384 .RS 4n
385 Requires the database to be stored as a hash. If this option is not specified,
386 the database will be stored as a \fBbtree\fR. This option is not recommended,
387 as databases stored in hash format are known to corrupt data and lose
388 principals.
392 .ne 2
394 \fB\fB-verbose\fR\fR
396 .sp .6
397 .RS 4n
398 Causes the name of each principal and policy to be displayed as it is dumped.
402 .ne 2
404 \fB\fB-update\fR\fR
406 .sp .6
407 .RS 4n
408 Records from the dump file are added to or updated in the existing database.
409 Otherwise, a new database is created containing only what is in the dump file
410 and the old one is destroyed upon successful completion.
414 .ne 2
416 \fB\fIfilename\fR\fR
418 .sp .6
419 .RS 4n
420 Required argument that specifies a path to a file containing database dump.
424 .ne 2
426 \fB\fIdbname\fR\fR
428 .sp .6
429 .RS 4n
430 Required argument that overrides the value specified on the command line or
431 overrides the default.
435 .ne 2
437 \fB\fIadmin_dbname\fR\fR
439 .sp .6
440 .RS 4n
441 Optional argument that is derived from \fIdbname\fR if not specified.
448 .SH EXAMPLES
450 \fBExample 1 \fRCreating File that Contains Information about Two Principals
453 The following example creates a file named \fBslavedata\fR that contains the
454 information about two principals, \fBjdb@ACME.COM\fR and \fBpak@ACME.COM\fR.
457 .in +2
459 # /usr/krb5/bin/kdb5_util dump -verbose slavedata
460 jdb@ACME.COM pak@ACME.COM
462 .in -2
465 .SH FILES
466 .ne 2
468 \fB\fB/var/krb5/principal\fR\fR
470 .sp .6
471 .RS 4n
472 Kerberos principal database.
476 .ne 2
478 \fB\fB/var/krb5/principal.kadm5\fR\fR
480 .sp .6
481 .RS 4n
482 Kerberos administrative database. Contains policy information.
486 .ne 2
488 \fB\fB/var/krb5/principal.kadm5.lock\fR\fR
490 .sp .6
491 .RS 4n
492 Lock file for the Kerberos administrative database. This file works backwards
493 from most other lock files (that is, \fBkadmin\fR exits with an error if this
494 file does not exist).
498 .ne 2
500 \fB\fB/var/krb5/principal.ulog\fR\fR
502 .sp .6
503 .RS 4n
504 The update log file for incremental propagation.
507 .SH ATTRIBUTES
509 See \fBattributes\fR(5) for descriptions of the following attributes:
514 box;
515 c | c
516 l | l .
517 ATTRIBUTE TYPE  ATTRIBUTE VALUE
519 Interface Stability     Evolving
522 .SH SEE ALSO
524 \fBkpasswd\fR(1), \fBkadmin\fR(8), \fBkadmind\fR(8),
525 \fBkadmin.local\fR(8), \fBkdb5_ldap_util\fR(8), \fBkproplog\fR(8),
526 \fBkadm5.acl\fR(4), \fBkdc.conf\fR(4), \fBattributes\fR(5), \fBkerberos\fR(5)