From 969b8579c755441092e27b499ecedbd7d725816d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 2 Jan 2008 18:39:15 -0600 Subject: r26646: libcli/smb_composite: Allow specifying SMB parameters in smb_composite_connect structure. AFAIK no global variables will now be used when doing RPC client connections. (This used to be commit 0ef75e4e3cb0e1bd10e367a00f5e9b725587c40a) --- source4/torture/raw/lockbench.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/torture/raw/lockbench.c') diff --git a/source4/torture/raw/lockbench.c b/source4/torture/raw/lockbench.c index 9131128f81..28392880d7 100644 --- a/source4/torture/raw/lockbench.c +++ b/source4/torture/raw/lockbench.c @@ -193,6 +193,12 @@ static void reopen_connection(struct event_context *ev, struct timed_event *te, io->in.credentials = cmdline_credentials; io->in.fallback_to_anonymous = false; io->in.workgroup = lp_workgroup(state->tctx->lp_ctx); + io->in.max_xmit = lp_max_xmit(state->tctx->lp_ctx); + io->in.max_mux = lp_maxmux(state->tctx->lp_ctx); + io->in.ntstatus_support = lp_nt_status_support(state->tctx->lp_ctx); + io->in.max_protocol = lp_cli_maxprotocol(state->tctx->lp_ctx); + io->in.unicode = lp_unicode(state->tctx->lp_ctx); + io->in.use_spnego = lp_use_spnego(state->tctx->lp_ctx) && lp_nt_status_support(state->tctx->lp_ctx); /* kill off the remnants of the old connection */ talloc_free(state->tree); -- cgit