diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-04-23 13:07:15 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-04-24 11:21:05 +0200 |
commit | 1f4c20f2c3506390834552d0102083d2b5b61f48 (patch) | |
tree | 32bb9f5899143a7cfdb491ca0566de2c13e7ef54 | |
parent | 06922f92e4ce885947000651491c17a0fea14294 (diff) | |
download | samba-1f4c20f2c3506390834552d0102083d2b5b61f48.tar.gz samba-1f4c20f2c3506390834552d0102083d2b5b61f48.tar.xz samba-1f4c20f2c3506390834552d0102083d2b5b61f48.zip |
s3:rpc_server: pass everything but AUTH_TYPE_{NONE,NCALRPC_AS_SYSTEM} to gensec
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 37 |
1 files changed, 6 insertions, 31 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index ebff114b28..d85751d846 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -731,32 +731,7 @@ static bool api_pipe_bind_req(struct pipes_struct *p, } switch (auth_type) { - case DCERPC_AUTH_TYPE_NTLMSSP: - if (!pipe_auth_generic_bind(p, pkt, - &auth_info, &auth_resp)) { - goto err_exit; - } - assoc_gid = 0x7a77; - break; - - case DCERPC_AUTH_TYPE_SCHANNEL: - if (!pipe_auth_generic_bind(p, pkt, - &auth_info, &auth_resp)) { - goto err_exit; - } - if (!session_info_set_session_key(p->session_info, generic_session_key())) { - DEBUG(0, ("session_info_set_session_key failed\n")); - goto err_exit; - } - p->pipe_bound = true; - break; - - case DCERPC_AUTH_TYPE_SPNEGO: - case DCERPC_AUTH_TYPE_KRB5: - if (!pipe_auth_generic_bind(p, pkt, - &auth_info, &auth_resp)) { - goto err_exit; - } + case DCERPC_AUTH_TYPE_NONE: break; case DCERPC_AUTH_TYPE_NCALRPC_AS_SYSTEM: @@ -780,12 +755,12 @@ static bool api_pipe_bind_req(struct pipes_struct *p, } break; - case DCERPC_AUTH_TYPE_NONE: - break; - default: - DEBUG(0, ("Unknown auth type %x requested.\n", auth_type)); - goto err_exit; + if (!pipe_auth_generic_bind(p, pkt, + &auth_info, &auth_resp)) { + goto err_exit; + } + break; } } |