1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-18 19:33:16 +03:00

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 commit is contained in:
Jelmer Vernooij
2008-01-02 18:39:15 -06:00
committed by Stefan Metzmacher
parent a2bc97e8b0
commit 0ef75e4e3c
11 changed files with 71 additions and 5 deletions

View File

@@ -445,6 +445,12 @@ static int ejs_tree_connect(MprVarHandle eid, int argc, char **argv)
io.in.credentials = creds;
io.in.fallback_to_anonymous = false;
io.in.workgroup = lp_workgroup(global_loadparm);
io.in.max_xmit = lp_max_xmit(global_loadparm);
io.in.max_mux = lp_maxmux(global_loadparm);
io.in.ntstatus_support = lp_nt_status_support(global_loadparm);
io.in.max_protocol = lp_cli_maxprotocol(global_loadparm);
io.in.unicode = lp_unicode(global_loadparm);
io.in.use_spnego = lp_use_spnego(global_loadparm) && lp_nt_status_support(global_loadparm);
result = smb_composite_connect(&io, mem_ctx,
lp_resolve_context(global_loadparm),