r10745: Fix artificial 1k restriction.
authorJeremy Allison <jra@samba.org>
Wed, 5 Oct 2005 23:02:59 +0000 (23:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:04:51 +0000 (11:04 -0500)
Jeremy.
(This used to be commit bb1ba9a9089b38bf400d48b992f7977ce926aeaf)

source3/rpc_client/cli_pipe.c

index df34b1c3d958433ecd72f91e93a4b3bea15dc5dc..c29ee0c0676ab7248cadcd0f068e3d35f082e4cb 100644 (file)
@@ -748,7 +748,7 @@ static NTSTATUS rpc_api_pipe(struct rpc_pipe_client *cli,
        uint32 data_len = data ? prs_offset(data) : 0;
        char *prdata = NULL;
        uint32 rdata_len = 0;
-       uint32 max_data = cli->max_xmit_frag ? cli->max_xmit_frag : 1024;
+       uint32 max_data = cli->max_xmit_frag ? cli->max_xmit_frag : RPC_MAX_PDU_FRAG_LEN;
        uint32 current_rbuf_offset = 0;
        prs_struct current_pdu;
        
@@ -2546,6 +2546,8 @@ static void kerberos_auth_struct_free(struct cli_pipe_auth_data *a)
 
 /****************************************************************************
  Open a named pipe to an SMB server and bind using krb5 (bind type 16).
+ The idea is this can be called with service_princ, username and password all
+ NULL so long as the caller has a TGT.
  ****************************************************************************/
 
 struct rpc_pipe_client *cli_rpc_pipe_open_krb5(struct cli_state *cli,