krb5_kt_default_name()--Get Default Key Table Name
Syntax
#include <krb5.h> krb5_error_code krb5_kt_default_name( krb5_context context, char * name, int name_size);Service Program Name: QSYS/QKRBGSS
Default Public Authority: *USE
Threadsafe: Yes
The krb5_kt_default_name() function returns the name of the default key table for the current user. If the KRB5_KTNAME environment variable is set, this is the name of the default key table. Otherwise, the key table name is obtained from the default_keytab_name entry in the [libdefaults] section of the Kerberos configuration file. If this entry is not defined, the default key table name is /QIBM/UserData/OS400/NetworkAuthentication/keytab/krb5.keytab.
Authorities
No authorities are required.
Parameters
- context (Input)
- The Kerberos context.
- name (Output)
- The key table name.
- name_size (Input)
- The size of the buffer pointed to by the name parameter. The size must be large enough to contain the key table name and the trailing delimiter. One way to do this is to allocate the buffer to be MAX_KEYTAB_NAME_LENGTH (256) +1 bytes.
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 ]