summaryrefslogtreecommitdiff
path: root/source3/rpc_server
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_server
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_server')
-rw-r--r--source3/rpc_server/srv_pipe.c6
1 files changed, 4 insertions, 2 deletions
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);