From a588b7ff413af63df4a6fd2d16c55989f00c8c7a Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 1 Apr 2011 12:15:08 +1100 Subject: [PATCH] set name type to GSS_C_NT_USER_NAME if NAI This allows us to canonicalize the name easily to another mechanism, so it can be used for protocol transition. --- util_name.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util_name.c b/util_name.c index 2922f98..84478fd 100644 --- a/util_name.c +++ b/util_name.c @@ -735,6 +735,8 @@ gssEapDisplayName(OM_uint32 *minor, if (output_name_buffer->length == 0) { name_type = GSS_C_NT_ANONYMOUS; + } else if (name->flags & NAME_FLAG_NAI) { + name_type = GSS_C_NT_USER_NAME; } else { name_type = GSS_EAP_NT_EAP_NAME; } -- 2.1.4