summaryrefslogtreecommitdiff
path: root/source3/librpc/rpc
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-09-01 17:27:56 -0400
committerGünther Deschner <gd@samba.org>2010-09-23 10:36:54 -0700
commit412ebad02b74d8fbb1f6493e87abab7e345dc000 (patch)
tree444396adf52552824b73de5ffc26453c0c78b3de /source3/librpc/rpc
parent0e5eb82a6f29e33ca2cafe0ed7103395837b3fc0 (diff)
downloadsamba-412ebad02b74d8fbb1f6493e87abab7e345dc000.tar.gz
samba-412ebad02b74d8fbb1f6493e87abab7e345dc000.tar.bz2
samba-412ebad02b74d8fbb1f6493e87abab7e345dc000.zip
gssapi: avoid explicit dependency on dcerpc specific structures
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/librpc/rpc')
-rw-r--r--source3/librpc/rpc/dcerpc_spnego.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/librpc/rpc/dcerpc_spnego.c b/source3/librpc/rpc/dcerpc_spnego.c
index 9ea2a561da..83c2137a1f 100644
--- a/source3/librpc/rpc/dcerpc_spnego.c
+++ b/source3/librpc/rpc/dcerpc_spnego.c
@@ -77,7 +77,9 @@ NTSTATUS spnego_gssapi_init_client(TALLOC_CTX *mem_ctx,
return status;
}
- status = gse_init_client(sp_ctx, DCERPC_AUTH_TYPE_KRB5, auth_level,
+ status = gse_init_client(sp_ctx,
+ (auth_level == DCERPC_AUTH_LEVEL_INTEGRITY),
+ (auth_level == DCERPC_AUTH_LEVEL_PRIVACY),
ccache_name, server, service,
username, password, add_gss_c_flags,
&sp_ctx->mech_ctx.gssapi_state);