#include <krb5.h>
krb5_error_code krb5_build_principal(
krb5_context context,
krb5_principal * ret_principal,
int realm_length,
krb5_const char * realm,
char * name1, name2, ...);
Service Program Name: QSYS/QKRBGSSThe krb5_build_principal() function builds a Kerberos principal from its component strings.
No authorities are required.
If no errors occur, the return value is 0. Otherwise, a Kerberos error code is returned.
| Message ID | Error Message Text |
|---|---|
| CPE3418 E | Possible APAR condition or hardware failure. |
See Code disclaimer information for information pertaining to code examples.
The following example creates the principal bambi/admin@forest:
#include <krb5.h>
retval = krb5_build_principal(context, &princ, 6, "forest", "bambi", "admin", NULL);
| Top | Security APIs UNIX-Type APIs | APIs by category |