skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_get_default_realm Retrieve the default realm krb5_get_default_realm Retrieve the default realm
go to next page: krb5_get_init_creds_opt_init  Initialize options for krb5_get_init_creds* routineskrb5_get_init_creds_opt_init Initialize options for krb5_get_init_creds*...
end of book navigation links

krb5_get_init_creds_keytab -- Get initial credentials' keytab 



C Prototype 

krb5_error_code krb5_get_init_creds_keytab (
        krb5_context            context,
        krb5_creds              *creds,
        krb5_principal          client,
        krb5_keytab             arg_keytab,
        krb5_deltat             start_time,
        char                    *in_tkt_service,
        krb5_get_init_creds_opt *options );

Arguments 

context
(input/output)
 The context structure.
creds (output) A pointer to a Kerberos credentials structure.
client (input) The client principal.
arg_keytab (input) A keytab handle.
start_time (input) The time when the ticket becomes valid.
in_tkt_service (input) The principal name of the requesting server.
options (input)  A pointer to a structure containing flags and options.

Description 

This routine gets the keytab associated with the initial credentials. This may be either the default context's keytab, or the keytab of the client credentials.

Return Values 

This routine returns the following KRB5 status codes:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_get_default_realm Retrieve the default realm krb5_get_default_realm Retrieve the default realm
go to next page: krb5_get_init_creds_opt_init  Initialize options for krb5_get_init_creds* routineskrb5_get_init_creds_opt_init Initialize options for krb5_get_init_creds*...