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

  Glossary

  Index

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 or principal name malformed.