authorize_localname SPI now includes nametype

This commit is contained in:
Luke Howard
2011-04-09 11:34:19 +10:00
parent 1a8bb5143c
commit bac9c34172
3 changed files with 21 additions and 10 deletions

View File

@@ -36,12 +36,16 @@ OM_uint32
_gsskrb5_authorize_localname(OM_uint32 *minor_status,
const gss_name_t input_name,
gss_const_buffer_t user_name,
gss_const_OID user_name_type,
int *user_ok)
{
krb5_context context;
krb5_principal princ = (krb5_principal)input_name;
char *user;
if (!gss_oid_equal(user_name_type, GSS_C_NT_USER_NAME))
return GSS_S_BAD_NAMETYPE;
GSSAPI_KRB5_INIT(&context);
user = malloc(user_name->length + 1);