kdc: Check generate_pac() return code
[heimdal.git] / doc / apps.texi
blob2b48edaafaff999d165e3419e7f92110b7e37a17
1 @c $Id$
3 @node Applications, Things in search for a better place, Setting up a realm, Top
5 @chapter Applications
7 @menu
8 * AFS::
9 @end menu
11 @node AFS, , Applications, Applications
12 @section AFS
14 @cindex AFS
15 AFS is a distributed filesystem that uses Kerberos for authentication.
17 @cindex OpenAFS
18 @cindex Arla
19 For more information about AFS see OpenAFS
20 @url{http://www.openafs.org/} and Arla
21 @url{http://www.stacken.kth.se/projekt/arla/}.
23 @subsection kafs and afslog
24 @cindex afslog
26 @manpage{afslog,1} will obtains AFS tokens for a number of cells. What cells to get
27 tokens for can either be specified as an explicit list, as file paths to
28 get tokens for, or be left unspecified, in which case will use whatever
29 magic @manpage{kafs,3} decides upon.
31 If not told what cell to get credentials for, @manpage{kafs,3} will
32 search for the files ThisCell and TheseCells in the locations
33 specified in @manpage{kafs,3} and try to get tokens for these cells
34 and the cells specified in $HOME/.TheseCells.
36 More usefully it will look at and ~/.TheseCells in your home directory
37 and for each line which is a cell get afs token for these cells.
39 The TheseCells file defines the the cells to which applications on the
40 local client machine should try to aquire tokens for. It must reside in
41 the directories searched by @manpage{kafs,3} on every AFS client machine.
43 The file is in ASCII format and contains one character string, the cell
44 name, per line. Cell names are case sensitive, but most cell names
45 are lower case.
47 See manpage for @manpage{kafs,3} for search locations of ThisCell and TheseCells.
49 @subsection How to get a KeyFile
51 @file{ktutil -k AFSKEYFILE:KeyFile get afs@@MY.REALM}
53 or you can extract it with kadmin
55 @example
56 kadmin> ext -k AFSKEYFILE:/usr/afs/etc/KeyFile afs@@My.CELL.NAME
57 @end example
59 You have to make sure you have a @code{des-cbc-md5} encryption type since that
60 is the enctype that will be converted.
62 @subsection How to convert a srvtab to a KeyFile
64 You need a @file{/usr/vice/etc/ThisCell} containing the cellname of your
65 AFS-cell.
67 @file{ktutil copy krb4:/root/afs-srvtab AFSKEYFILE:/usr/afs/etc/KeyFile}.
69 If keyfile already exists, this will add the new key in afs-srvtab to
70 KeyFile.