diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-21 04:09:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:33 -0500 |
commit | 38d540e9fe8701ab3942f0fcbeba01c53d29798b (patch) | |
tree | 952338195407ed1a0508cd70ddde182561a58c9c /source4/librpc/rpc | |
parent | b495bb246c474cdac37e8176457c94262836e21f (diff) | |
download | samba-38d540e9fe8701ab3942f0fcbeba01c53d29798b.tar.gz samba-38d540e9fe8701ab3942f0fcbeba01c53d29798b.tar.bz2 samba-38d540e9fe8701ab3942f0fcbeba01c53d29798b.zip |
r11817: fixed the problem with the RPC join tests. The problem was that
revision 11809 had removed the change to the session key function
after authentication succeeds.
(This used to be commit c04c78d617b0d8c9f8fa724d475fefbe9e478ef7)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_auth.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_auth.c b/source4/librpc/rpc/dcerpc_auth.c index c0d4c55835..5745a38a8f 100644 --- a/source4/librpc/rpc/dcerpc_auth.c +++ b/source4/librpc/rpc/dcerpc_auth.c @@ -276,6 +276,16 @@ struct composite_context *dcerpc_bind_auth_send(TALLOC_CTX *mem_ctx, NTSTATUS dcerpc_bind_auth_recv(struct composite_context *creq) { NTSTATUS result = composite_wait(creq); + struct bind_auth_state *state = talloc_get_type(creq->private_data, struct bind_auth_state); + + if (NT_STATUS_IS_OK(result)) { + /* + after a successful authenticated bind the session + key reverts to the generic session key + */ + state->pipe->conn->security_state.session_key = dcerpc_generic_session_key; + } + talloc_free(creq); return result; } |