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_free_unparsed_name  Free a simple name krb5_free_unparsed_name Free a simple name
go to next page: krb5_get_credentials  Get an additional ticket for the clientkrb5_get_credentials Get an additional ticket for the client
end of book navigation links

krb5_fwd_tgt_creds -- Get a TGT for use at a remote host 



C Prototype 

krb5_error_code krb5_fwd_tgt_creds (
        krb5_context            context,
        krb5_auth_context       auth_context,
        char                    *rhost,
        krb5_principal          client,
        krb5_principal          server,
        krb5_ccache             cc,
        int                     forwardable,
        krb5_data               *outbuf );

Arguments 

context
(input/output)
 The context structure.
auth_context (input/output)
 A per-connection context.
rhost (input/output) The remote host.
client (input) The client principal.
server (input) The server principal.
cc (input) The credentials cache name.
forwardable (input) A Boolean indicating whether the TGT should be forwardable.
outbuf (output) The output buffer containing the TGT.

Description 

This routine acquires a TGT for use at a remote host system.

Return Values 

This routine returns the following KRB5 status codes:

0
Successful completion.
ENOMEM
Insufficient memory.
KRB5_PRINC_NOMATCH
Requested principal and ticket don't match.
KRB5_NO_TKT_SUPPLIED
Request did not supply a ticket.
KRB5_CC_BADNAME
Credential cache name malformed.


go to previous page: krb5_free_unparsed_name  Free a simple name krb5_free_unparsed_name Free a simple name
go to next page: krb5_get_credentials  Get an additional ticket for the clientkrb5_get_credentials Get an additional ticket for the client