krb5_cc_get_principal()--Get Principal From a Credentials Cache
Syntax
#include <krb5.h> krb5_error_code krb5_cc_get_principal( krb5_context context, krb5_ccache ccache); krb5_principal * principal);Service Program Name: QSYS/QKRBGSS
Default Public Authority: *USE
Threadsafe: Yes
The krb5_cc_get_principal() function returns the principal associated with the credentials cache. The principal name is set by the krb5_cc_initialize() routine. This is the default client principal for tickets stored in the credentials cache.
Authorities
No authorities are required.
Parameters
- context (Input)
- The Kerberos context.
- ccache (Input)
- The credentials cache handle.
- principal (Output)
- The principal. The krb5_free_principal() routine should be called to release the principal when it is no longer needed.
Return Value
If no errors occur, the return value is 0. Otherwise, a Kerberos error code is returned.
Error Messages
Message ID | Error Message Text |
---|---|
CPE3418 E | Possible APAR condition or hardware failure. |
API introduced: V5R1
[ Back to top | Security APIs | UNIX-Type APIs | APIs by category ]