torture debug.
authorLuke Leighton <lkcl@samba.org>
Thu, 22 Oct 1998 23:05:55 +0000 (23:05 +0000)
committerLuke Leighton <lkcl@samba.org>
Thu, 22 Oct 1998 23:05:55 +0000 (23:05 +0000)
(This used to be commit 97609596647dea39c061bdf972411a86f7294521)

source3/include/proto.h
source3/utils/rpctorture.c

index e0d70a873c0912def968b68ed4515c094752c673..6ec6f7e617ef8c498069833a01f61f406757be59 100644 (file)
@@ -501,7 +501,6 @@ void E_old_pw_hash( unsigned char *p14, unsigned char *in, unsigned char *out);
 void cred_hash1(unsigned char *out,unsigned char *in,unsigned char *key);
 void cred_hash2(unsigned char *out,unsigned char *in,unsigned char *key);
 void cred_hash3(unsigned char *out,unsigned char *in,unsigned char *key, int forw);
-void NTLMSSPhash( unsigned char hash[258], unsigned char key[5]);
 void NTLMSSPcalc( unsigned char hash[258], unsigned char *data, int len);
 void SamOEMhash( unsigned char *data, unsigned char *key, int val);
 
index 118be4d598389d9986063bbf244e6b1adbeb15d2..50030bcadca053da800c5f8e0663fab80f7085ec 100644 (file)
@@ -99,6 +99,7 @@ static void rpcclient_stop(void)
 ****************************************************************************/
 void run_enums_test(int num_ops, struct client_info *cli_info, struct cli_state *cli)
 {
+       pstring cmd;
        int i;
 
        /* establish connections.  nothing to stop these being re-established. */
@@ -114,9 +115,22 @@ void run_enums_test(int num_ops, struct client_info *cli_info, struct cli_state
        
        for (i = 0; i < num_ops; i++)
        {
+               set_first_token("");
                cmd_srv_enum_sess(cli_info);
+               set_first_token("");
                cmd_srv_enum_shares(cli_info);
+               set_first_token("");
                cmd_srv_enum_files(cli_info);
+
+               if (password[0] != 0)
+               {
+                       slprintf(cmd, sizeof(cmd)-1, "1");
+                       set_first_token(cmd);
+               }
+               else
+               {
+                       set_first_token("");
+               }
                cmd_srv_enum_conn(cli_info);
        }