|
| ||||||||||||||||||||
| yes | use the 524 server in the realm to convert the ticket |
| no | use the Kerberos 5 ticket directly, can be used with if the afs cell support 2b token. |
| local, 2b | |
| convert the Kerberos 5 credential to a 2b token locally (the same work as a 2b 524 server should have done). | |
Example:
[appdefaults]
SU.SE = { afs-use-524 = local }
PDC.KTH.SE = { afs-use-524 = yes }
afs-use-524 = yes
libkafs will use the libkafs as application name when running the krb5_appdefault function call.
The (uppercased) cellname is used as the realm to the krb5_appdefault function.
k_afs_cell_of_file will in cell return the cell of a specified file, no more than len characters is put in cell.
k_pioctl does a pioctl syscall with the specified arguments. This function is equivalent to lpioctl.
k_setpag initializes a new PAG.
k_unlog removes destroys all tokens in the current PAG.
k_hasafs returns 1 if AFS is present in the kernel, 0 otherwise. krb_afslog and krb_afslog_uid returns 0 on success, or a Kerberos error number on failure. k_afs_cell_of_file, k_pioctl, k_setpag, and k_unlog all return the value of the underlaying system call, 0 on success.
The following environment variable affect the mode of operation of kafs:
AFS_SYSCALL Normally, kafs will try to figure out the correct system call(s) that are used by AFS by itself. If it does not manage to do that, or does it incorrectly, you can set this variable to the system call number or list of system call numbers that should be used.
The following code from
login
will obtain a new PAG and tokens for the local cell and the cell of
the users home directory.
if (k_hasafs()) {
char cell[64];
k_setpag();
if(k_afs_cell_of_file(pwd->pw_dir, cell, sizeof(cell)) == 0)
krb_afslog(cell, NULL);
krb_afslog(NULL, NULL);
}
If any of these functions (apart from k_hasafs) is called without AFS being present in the kernel, the process will usually (depending on the operating system) receive a SIGSYS signal.
.Rs File Server/Cache Manager Interface
.Rekrb5_appdefaults(3), krb5.conf(5)
AFS_SYSCALL has no effect under AIX.
| Mar 17, 2003 | KAFS (3) | HEIMDAL |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.