krb_set_tkt_string(3krb)
Name
krb_set_tkt_string, krb_set_srvtab_string − Environmental setup of the Kerberos libraries
Syntax
#include <krb.h>
void krb_set_tkt_string (filename)
char *filename
void krb_set_srvtab_string (filename)
char *filename
Arguments
filename The filename of the Kerberos ticket cache file or the name of the service table file.
Description
The krb_set_tkt_string routine sets the default name of the file that holds a cache of service tickets and associated session keys belonging to a Kerberos principal. The routine accepts a filename for the cache and copies this name into the local storage of libkrb. The default before any calls to krb_set_tkt_string, is /var/dss/kerberos/tkt/tkt[uid]where uid is the user ID of the process that calls krb_set_tkt_string.
You should call krb_set_tkt_string during Kerberos initialization to assure that any routines called later receive the proper name if they require the filename of the cache.
The krb_set_srvtab_string routine sets the default name of the file that stores the keys of the Kerberos applications running on the local host. The routine accepts a filename for the service table file and copies this name into the local storage of libkrb.
You should call krb_set_srvtab_string during the Kerberos initialization of a service to assure that any subsequently called routines that require the filename of the service table receive the proper name. The default, before any calls to the krb_set_srvtab string, is /etc/srvtab.
Files
/var/dss/kerberos/tkt/tkt[uid]
/etc/srvtab