HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_fwd_tgt_creds — Get a TGT for use at a remote host

  Table of Contents



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 );


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.


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

Return Values

This routine returns the following KRB5 status codes:


Successful completion.

ENOMEM Insufficient memory.


Requested principal and ticket don’t match.


Request did not supply a ticket.


Credential cache name or principal name malformed.