1 .\" $Id: kafs.3,v 1.3 1998/06/30 15:41:52 assar Exp $
11 .Nm k_afs_cell_of_file ,
15 .\" .Nm krb5_afslog_uid
20 .Fn k_afs_cell_of_file "const char *path" "char *cell" "int len"
24 .Fn k_pioctl "char *a_path" "int o_opcode" "struct ViceIoctl *a_paramsP" "int a_followSymlinks"
30 .Fn krb_afslog "char *cell" "char *realm"
32 .Fn krb_afslog_uid "char *cell" "char *realm" "uid_t uid"
33 .\" .Ft krb5_error_code
34 .\" .Fn krb5_afslog_uid "krb5_context context" "krb5_ccache id" "const char *cell" "krb5_const_realm realm" "uid_t uid"
35 .\" .Ft krb5_error_code
36 .\" .Fn krb5_afslog "krb5_context context" "krb5_ccache id" "const char *cell" "krb5_const_realm realm"
39 initializes some library internal structures, and tests for the
40 presense of AFS in the kernel, none of the other functions should be
43 is called, or if it fails.
48 obtains new tokens (and possibly tickets) for the specified
56 the local cell is used. If
60 the function tries to guess what realm to use. Unless you have some good knowledge of what cell or realm to use, you should pass
63 will use the real user-id for the
72 .\" .Fn krb5_afslog_uid
73 .\" are the Kerberos 5 equivalents of
76 .\" .Fn krb_afslog_uid .
77 .\" The extra arguments are the ubiquitous context, and the cache id where
78 .\" to store any obtained tickets. Since AFS servers normally can't handle
79 .\" Kerberos 5 tickets directly, these functions will first obtain version
80 .\" 5 tickets for the requested cells, and then convert them to version 4
81 .\" tickets, that can be stashed in the kernel. To convert tickets the
82 .\" .Fn krb524_convert_creds_kdc
83 .\" function will be used.
85 .Fn k_afs_cell_of_file
88 return the cell of a specified file, no more than
96 syscall with the specified arguments. This function is equivalent to
100 initializes a new PAG.
103 removes destroys all tokens in the current PAG.
105 The following environment variable affect the mode of operation of
107 .Bl -tag -width AFS_SYSCALL
111 will try to figure out the correct system call(s) that are used by AFS
112 by itself. If it does not manage to do that, or does it incorrectly,
113 you can set this variable to the system call number or list of system
114 call numbers that should be used.
118 returns 1 if AFS is present in the kernel, 0 otherwise.
122 returns 0 on success, or a kerberos error number on failure.
123 .Fn k_afs_cell_of_file ,
128 all return the value of the underlaying system call, 0 on success.
130 The following code from
132 will obtain a new PAG and tokens for the local cell and the cell of
133 the users home directory.
138 if(k_afs_cell_of_file(pwd->pw_dir, cell, sizeof(cell)) == 0)
139 krb_afslog(cell, NULL);
140 krb_afslog(NULL, NULL);
144 If any of these functions (appart from
146 is called without AFS beeing present in the kernel, the process will
147 usually (depending on the operating system) receive a SIGSYS signal.
150 .%A Transarc Corporation
151 .%J AFS-3 Programmer's Reference
152 .%T File Server/Cache Manager Interface
157 has no effect under AIX.