summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_rpc_acquire_cred.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-10-26 18:22:00 -0400
committerSimo Sorce <simo@redhat.com>2014-01-06 21:27:55 -0500
commit23994cf7ebcd83658d03f6b9419c3b496ab4b6c2 (patch)
treefe5bdb403a03d54d4a58ebc132b1693fcc8964e3 /proxy/src/gp_rpc_acquire_cred.c
parent2525b828319b5159a682da20f016a051b6db85bd (diff)
downloadgss-proxy-ntlmssp.tar.gz
gss-proxy-ntlmssp.tar.xz
gss-proxy-ntlmssp.zip
Add NTLMSSP supportntlmssp
Diffstat (limited to 'proxy/src/gp_rpc_acquire_cred.c')
-rw-r--r--proxy/src/gp_rpc_acquire_cred.c14
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;
}
}