svn commit: samba r9938 - in branches/tmp/RPCREWRITE/source/rpc_client: .

jra at samba.org jra at samba.org
Fri Sep 2 00:55:40 GMT 2005


Author: jra
Date: 2005-09-02 00:55:39 +0000 (Fri, 02 Sep 2005)
New Revision: 9938

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

Log:
NTLMSSP NTLMv2 3 leg (type 10 bind) now works correctly to
Samba HEAD. Now to fill out the sign/seal code currently
stubbed in the data stream processing.
Jeremy.

Modified:
   branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c


Changeset:
Modified: branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c
===================================================================
--- branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c	2005-09-02 00:42:29 UTC (rev 9937)
+++ branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c	2005-09-02 00:55:39 UTC (rev 9938)
@@ -25,12 +25,11 @@
 
 extern struct pipe_id_info pipe_names[];
 
-#if 0
 /********************************************************************
  Map internal value to wire value.
  ********************************************************************/
 
-int map_pipe_auth_type_to_rpc_auth_type(enum pipe_auth_type auth_type)
+static int map_pipe_auth_type_to_rpc_auth_type(enum pipe_auth_type auth_type)
 {
 	switch (auth_type) {
 
@@ -58,7 +57,6 @@
 	}
 	return -1;
 }
-#endif
 
 /********************************************************************
  Rpc pipe call id.
@@ -1553,7 +1551,9 @@
 	}
 
 	/* Create the request RPC_HDR_AUTHA */
-	init_rpc_hdr_auth(&hdr_auth, auth_type, auth_level, 0, 1);
+	init_rpc_hdr_auth(&hdr_auth,
+			map_pipe_auth_type_to_rpc_auth_type(auth_type),
+			auth_level, 0, 1);
 
 	if(!smb_io_rpc_hdr_auth("hdr_auth", &hdr_auth, rpc_out, 0)) {
 		DEBUG(0,("create_rpc_bind_auth3: failed to marshall RPC_HDR_AUTHA.\n"));
@@ -1642,6 +1642,12 @@
 		return cli_get_nt_error(cli->cli);
 	}
 
+	DEBUG(5,("rpc_send_auth_auth3: Remote machine %s pipe %s "
+		"fnum 0x%x sent auth3 response ok.\n",
+		cli->cli->desthost,
+		cli_get_pipe_name(cli->pipe_idx),
+		(unsigned int)cli->fnum));
+
 	prs_mem_free(&rpc_out);
 	data_blob_free(&client_reply);
 	data_blob_free(&server_response);



More information about the samba-cvs mailing list