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 next page: krb5_524_conv_principal  Separate a Kerberos V5 principal into componentskrb5_524_conv_principal Separate a Kerberos V5 principal into...
end of book navigation links

krb5_425_conv_principal -- Convert a Kerberos V4 principal name to V5 format 



C Prototype 

krb5_error_code krb5_425_conv_principal(
         krb5_context       context,
         const char         *name,
         const char         *instance,
         const char         *realm,
         krb5_principal     *princ ); 

Arguments 

context
(input/output)
 The context structure.
name (input) Kerberos V4 name.
instance (input) Kerberos V4 instance.
realm (input) Kerberos V4 realm.
principal (output) Kerberos V5 principal name.

Description 

This routine builds a principal princ from a V4 specification made up of name.instance@realm. The routine is site customized to convert the V4 naming scheme to a V5 scheme. For instance, the V4 rcmd is changed to host.

The returned principal should be freed with krb5_free_principal.

Return Values 

This routine returns the following KRB5 status code:

0
Successful completion.


 
go to next page: krb5_524_conv_principal  Separate a Kerberos V5 principal into componentskrb5_524_conv_principal Separate a Kerberos V5 principal into...