skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_425_conv_principal  Convert a Kerberos V4 principal name to V5 format krb5_425_conv_principal Convert a Kerberos V4 principal name...
go to next page: krb5_address_compare  Compare two addresseskrb5_address_compare Compare two addresses
end of book navigation links

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.


go to previous page: krb5_425_conv_principal  Convert a Kerberos V4 principal name to V5 format krb5_425_conv_principal Convert a Kerberos V4 principal name...
go to next page: krb5_address_compare  Compare two addresseskrb5_address_compare Compare two addresses