summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-02 18:39:15 -0600
committerStefan Metzmacher <metze@samba.org>2008-01-02 12:48:04 -0600
commit969b8579c755441092e27b499ecedbd7d725816d (patch)
tree2b6ed0049c7afc7624ec81b559aad1d179a6b398 /source4/librpc
parent40acf23a927b7fcabad621cadabb9c7476c8d5e9 (diff)
downloadsamba-969b8579c755441092e27b499ecedbd7d725816d.tar.gz
samba-969b8579c755441092e27b499ecedbd7d725816d.tar.bz2
samba-969b8579c755441092e27b499ecedbd7d725816d.zip
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)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc_connect.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_connect.c b/source4/librpc/rpc/dcerpc_connect.c
index 4c11a56272..26bccbbad7 100644
--- a/source4/librpc/rpc/dcerpc_connect.c
+++ b/source4/librpc/rpc/dcerpc_connect.c
@@ -119,6 +119,13 @@ static struct composite_context *dcerpc_pipe_connect_ncacn_np_smb_send(TALLOC_CT
conn->in.service_type = NULL;
conn->in.workgroup = lp_workgroup(lp_ctx);
+ conn->in.max_xmit = lp_max_xmit(lp_ctx);
+ conn->in.max_mux = lp_maxmux(lp_ctx);
+ conn->in.ntstatus_support = lp_nt_status_support(lp_ctx);
+ conn->in.max_protocol = lp_cli_maxprotocol(lp_ctx);
+ conn->in.unicode = lp_unicode(lp_ctx);
+ conn->in.use_spnego = lp_use_spnego(lp_ctx) && lp_nt_status_support(lp_ctx);
+
/*
* provide proper credentials - user supplied, but allow a
* fallback to anonymous if this is an schannel connection