gss_authorize_localname implementation

This commit is contained in:
Luke Howard
2011-04-08 10:58:57 +10:00
parent 6ec5011d48
commit 6c6e483e00
9 changed files with 103 additions and 85 deletions

View File

@@ -62,16 +62,12 @@ attr_pname_to_uid(OM_uint32 *minor_status,
OM_uint32 major_status = GSS_S_UNAVAILABLE;
OM_uint32 tmpMinor;
int more = -1;
gss_buffer_desc attribute;
*minor_status = 0;
if (mn->gmn_mech->gm_get_name_attribute == NULL)
return GSS_S_UNAVAILABLE;
attribute.length = sizeof("local-login-user") - 1;
attribute.value = "local-login-user";
while (more != 0) {
gss_buffer_desc value;
gss_buffer_desc display_value;
@@ -86,7 +82,7 @@ attr_pname_to_uid(OM_uint32 *minor_status,
major_status = mn->gmn_mech->gm_get_name_attribute(minor_status,
mn->gmn_name,
&attribute,
GSS_C_ATTR_LOCAL_LOGIN_USER,
&authenticated,
&complete,
&value,