diff options
Diffstat (limited to 'proxy/src/gp_rpc_acquire_cred.c')
-rw-r--r-- | proxy/src/gp_rpc_acquire_cred.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/proxy/src/gp_rpc_acquire_cred.c b/proxy/src/gp_rpc_acquire_cred.c index 0f53989..e1707d7 100644 --- a/proxy/src/gp_rpc_acquire_cred.c +++ b/proxy/src/gp_rpc_acquire_cred.c @@ -123,12 +123,18 @@ int gp_acquire_cred(struct gp_call_ctx *gpcall, NULL, NULL, NULL); - if (ret_maj) { - goto done; - } + } else if (gss_oid_equal(desired_mech, &gp_mech_ntlmssp)) { + ret_maj = gp_add_ntlmssp_creds(&ret_min, + gpcall, + in_cred, + aca->desired_name, + cred_usage, + add_out_cred); } else { - /* we support only the krb5 mech for now */ ret_maj = GSS_S_BAD_MECH; + ret_min = 0; + } + if (ret_maj) { goto done; } } |