svn commit: samba r11817 - in branches/SAMBA_4_0/source/librpc/rpc: .

tridge at samba.org tridge at samba.org
Mon Nov 21 04:09:37 GMT 2005


Author: tridge
Date: 2005-11-21 04:09:36 +0000 (Mon, 21 Nov 2005)
New Revision: 11817

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11817

Log:

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.


Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_auth.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_auth.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_auth.c	2005-11-21 02:52:33 UTC (rev 11816)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_auth.c	2005-11-21 04:09:36 UTC (rev 11817)
@@ -276,6 +276,16 @@
 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;
 }



More information about the samba-cvs mailing list