krb5_error_code krb5_524_conv_principal ( krb5_context context, krb5_const_principal princ, char *name, char *inst, char *realm );
The context structure.
The Kerberos V5 principal.
The principal name.
The principal instance name.
The principal realm name.
This routine separates a Kerberos V5 principal into name, instance, and realm.
This routine returns the following KRB5 status codes:
KRB5_INVALID_PRINCIPAL
Invalid principal name.
KRB5_CONFIG_CANTOPEN
Can’t open/find Kerberos configuration file.