kerby
kerby copied to clipboard
GSS Principal names are not usernames (initiator side): apps need control over name type
else if (principal && *principal) {
gss_name_t name;
principal_token.length = strlen(principal);
principal_token.value = (char *)principal;
state->maj_stat = gss_import_name(
&state->min_stat, &principal_token, GSS_C_NT_USER_NAME, &name
);
The name type has to be specifiable by the application.