diff options
author | Günther Deschner <gd@samba.org> | 2013-09-18 18:34:58 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2013-09-19 11:09:40 +0200 |
commit | a32a83ba9d6c7b5bbe9077973e5402ba65c068e7 (patch) | |
tree | 9903f57d30aedc02bf967160a6cfed1f2b71ce63 /source3 | |
parent | 89d0b89b5d58ceef13bc10036d396b10f8a102ae (diff) | |
download | samba-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')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 9 |
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: |