---
name: "krb5_get_forwarded_creds"
section: "3"
platform: "linux"
package: "heimdal-dev"
version: "7.8.git20221117.28daf24+dfsg-9+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/krb5_get_forwarded_creds"
---

# krb5\_get\_forwarded\_creds(3)

get forwarded credentials from the KDC

## NAME

**krb5\_get\_forwarded\_creds**, **krb5\_fwd\_tgt\_creds** – get forwarded credentials from the KDC

## LIBRARY

Kerberos 5 Library (libkrb5, -lkrb5)

## SYNOPSIS

**#include \<krb5.h\>**

*krb5\_error\_code*\

**krb5\_get\_forwarded\_creds**(*krb5\_context context*, *krb5\_auth\_context auth\_context*, *krb5\_ccache ccache*, *krb5\_flags flags*, *const char \*hostname*, *krb5\_creds \*in\_creds*, *krb5\_data \*out\_data*);

*krb5\_error\_code*\

**krb5\_fwd\_tgt\_creds**(*krb5\_context context*, *krb5\_auth\_context auth\_context*, *const char \*hostname*, *krb5\_principal client*, *krb5\_principal server*, *krb5\_ccache ccache*, *int forwardable*, *krb5\_data \*out\_data*);

## DESCRIPTION

**krb5\_get\_forwarded\_creds**() and **krb5\_fwd\_tgt\_creds**() get tickets forwarded to *hostname.* If the tickets that are forwarded are address-less, the forwarded tickets will also be address-less, otherwise *hostname* will be used for figure out the address to forward the ticket too.

## SEE ALSO

[krb5(3)](/krb5/3.md), [krb5\_get\_credentials(3)](/krb5_get_credentials/3.md), [krb5.conf(5)](/krb5.conf/5.md)
