[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here
HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_524_conv_principal — Separate a Kerberos V5 principal into components

 » Table of Contents

 » Glossary

 » Index

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:

0Successful completion.

KRB5_INVALID_PRINCIPAL

Invalid principal name.

KRB5_CONFIG_CANTOPEN

Can’t open/find Kerberos configuration file.