summaryrefslogtreecommitdiff
path: root/source3/rpc_client
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/rpc_client
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/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 21f7c4bf31..077a08a770 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -3012,7 +3012,9 @@ NTSTATUS cli_rpc_pipe_open_krb5(struct cli_state *cli,
goto err_out;
}
- status = gse_init_client(auth, auth->auth_type, auth->auth_level,
+ status = gse_init_client(auth,
+ (auth_level == DCERPC_AUTH_LEVEL_INTEGRITY),
+ (auth_level == DCERPC_AUTH_LEVEL_PRIVACY),
NULL, server, "cifs", username, password,
GSS_C_DCE_STYLE, &auth->a_u.gssapi_state);