MIT Kerberos Documentation


krb5_parse_name_flags - Convert a string principal name to a krb5_principal with flags.

krb5_error_code krb5_parse_name_flags(krb5_context context, const char * name, int flags, krb5_principal * nprincipal)
param:

[in] context - Library context

[in] name - String representation of a principal name

[in] flags - Flag

[out] nprincipal - Principal

retval:
  • 0 Success
return:
  • Kerberos error codes

Similar to krb5_parse_name() , this function converts a single-string representation of a principal name to a krb5_principal structure.

The following flags are valid:

Use krb5_free_principal() to free nprincipal when it is no longer needed.