krb5_524_conv_principal -- Separate
a Kerberos V5 principal into components

C Prototype

krb5_error_code krb5_524_conv_principal (
krb5_context context,
krb5_const_principal princ,
char *name,
char *inst,
char *realm );
Arguments

context (input/output) | | The context structure. |
| princ (input) | | The Kerberos V5 principal. |
| name (output) | | The principal name. |
| inst (output) | | The principal instance name. |
| realm (output) | | The principal realm name. |
Description

This routine separates a Kerberos V5 principal into name, instance,
and realm.
Return
Values

This routine returns the following KRB5 status codes:
0
|
Successful completion.
|
KRB5_INVALID_PRINCIPAL
|
Invalid principal name.
|
KRB5_CONFIG_CANTOPEN
|
Can't open/find Kerberos configuration
file.
|