From 412ebad02b74d8fbb1f6493e87abab7e345dc000 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 1 Sep 2010 17:27:56 -0400 Subject: gssapi: avoid explicit dependency on dcerpc specific structures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- source3/rpc_server/srv_pipe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/rpc_server/srv_pipe.c') diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 4a159ce997..15aaa8254a 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -1027,8 +1027,10 @@ static bool pipe_gssapi_auth_bind(struct pipes_struct *p, /* by passing NULL, the code will attempt to set a default * keytab based on configuration options */ status = gse_init_server(p, - DCERPC_AUTH_TYPE_KRB5, - auth_info->auth_level, + (auth_info->auth_level == + DCERPC_AUTH_LEVEL_INTEGRITY), + (auth_info->auth_level == + DCERPC_AUTH_LEVEL_PRIVACY), GSS_C_DCE_STYLE, NULL, NULL, &gse_ctx); -- cgit