summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-09-18 18:34:58 +0200
committerGünther Deschner <gd@samba.org>2013-09-19 11:09:40 +0200
commita32a83ba9d6c7b5bbe9077973e5402ba65c068e7 (patch)
tree9903f57d30aedc02bf967160a6cfed1f2b71ce63 /source3/rpc_server
parent89d0b89b5d58ceef13bc10036d396b10f8a102ae (diff)
downloadsamba-a32a83ba9d6c7b5bbe9077973e5402ba65c068e7.tar.gz
samba-a32a83ba9d6c7b5bbe9077973e5402ba65c068e7.tar.bz2
samba-a32a83ba9d6c7b5bbe9077973e5402ba65c068e7.zip
s3-rpc_srv: use gensec for schannel bind.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Pair-Programmed-With: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_pipe.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 49a27b9b0b..96b3cc5c87 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -808,10 +808,15 @@ static bool api_pipe_bind_req(struct pipes_struct *p,
break;
case DCERPC_AUTH_TYPE_SCHANNEL:
- if (!pipe_schannel_auth_bind(p, pkt,
- &auth_info, &auth_resp)) {
+ 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: