Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / bos_util.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3bos_util - Manipulate the AFS server Keyfile
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<bos_util> add <I<kvno>>
11
12B<bos_util> adddes <I<kvno>>
13
14B<bos_util> delete <I<kvno>>
15
16B<bos_util> list
17
18=for html
19</div>
20
21=head1 DESCRIPTION
22
23The B<bos_util> command manipulates the AFS server B<Keyfile>. It can take
24a password from standard input, convert it to a key, and add it to the
25F<KeyFile>; list the keys in the F<KeyFile>; or remove a key from thet
26F<KeyFile>. It is very similar in function to B<asetkey>, but B<asetkey>
27works with keytab files whereas B<bos_util> works with passwords directly.
28
29B<bos_util> expects one of the following subcommands:
30
31=over 4
32
33=item add <I<kvno>>
34
35Add a key with key version <I<kvno>> to the F<KeyFile> using a password
36from standard input. This command uses the normal AFS password salt
37algorithm to generate the key (equivalent to the des-cbc-crc:afs3 enctype
38in Kerberos v5). This command is basically equivalent to B<bos addkey>.
39
40=item adddes <I<kvno>>
41
42Add a key with key version <I<kvno>> to the B<KeyFile> using a password
43from standard input. This command does not salt the password when
44generating the key (equivalent to the des-cbc-crc:v4 enctype in Kerberos
45v5).
46
47Since this command applies no salt to the password, it can be used as a
48last resort for generating a DES key with a salt algorithm that other
49utilities don't know how to use by giving this command the pre-salted
50password. This can be useful when, for example, using Microsoft Active
51Directory as the Kerberos KDC, since Active Directory uses a different
52salt algorithm for service principals than most Unix Kerberos
53implementations. The best approach, however, is to find a way to generate
54a keytab and then use B<asetkey>.
55
56=item delete <I<kvno>>
57
58Delete the key with the specified key version from the F<KeyFile>. This
59command is equivalent to B<asetkey delete> or B<bos removekey>.
60
61=item list
62
63List the keys in the F<KeyFile>. This command is equivalent to B<asetkey
64list> or B<bos listkeys>.
65
66=back
67
68The B<bos_util> command does not use the normal AFS option parsing library
69and its subcommands cannot be abbreviated.
70
71=head1 CAUTIONS
72
73B<bos_util> is intended for use with a Kerberos v4 environment and
74therefore is mostly obsolete. Normally, rather than using this command,
75you will want to use B<ktutil> to create a keytab (perhaps with its
76B<add_entry> command) and then use B<asetkey> as normal. B<bos_util> only
77supports the AFS password salt algorithm and no password salt algorithm
78and therefore may not produce the same key from a given password as
79Kerberos v5 utilities unless one is careful to use that same salt
80algorithm when creating the key in the KDC.
81
82Creating an AFS key with a known password and then using B<bos_util> or
83B<bos addkey> to add that key to the F<KeyFile> is not recommended.
84Human-created passwords are usually not as strong as a random key
85generated using a good entropy source, such as with the B<-randkey> option
86to the MIT Kerberos v5 B<kadmin ktadd> command or the equivalent in other
87Kerberos v5 implementations. The security of AFS depends on the strength
88of the AFS service key; it should therefore be as random as possible.
89
90It is imperative that the key version number (kvno) given matches the kvno
91on the Kerberos server. If it doesn't, users won't be able to
92authenticate. The key generated by B<bos_util> must also match the
93internal representation on the Kerberos server including the salt.
94
95=head1 OPTIONS
96
97B<bos_util> takes no options.
98
99=head1 PRIVILEGE REQUIRED
100
101The issuer must be logged onto a file server machine as the local
102superuser C<root>.
103
104=head1 SEE ALSO
105
106L<asetkey(8)>,
107L<bos_addkey(8)>,
108L<bos_listkeys(8)>,
109L<bos_removekey(8)>,
110kadmin(8),
111ktutil(8)
112
113=head1 COPYRIGHT
114
115Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
116
117This documentation is covered by the BSD License as written in the
118doc/LICENSE file. This man page was written by Jason Edgecombe for
119OpenAFS.