mirror of
https://github.com/samba-team/samba.git
synced 2025-11-08 16:23:49 +03:00
r25398: Parse loadparm context to all lp_*() functions.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
15e41e4278
commit
3fcc960839
@@ -431,7 +431,7 @@ static int ejs_tree_connect(MprVarHandle eid, int argc, char **argv)
|
||||
/* Set up credentials */
|
||||
|
||||
creds = cli_credentials_init(NULL);
|
||||
cli_credentials_set_conf(creds);
|
||||
cli_credentials_set_conf(creds, global_loadparm);
|
||||
cli_credentials_parse_string(creds, argv[1], CRED_SPECIFIED);
|
||||
|
||||
/* Do connect */
|
||||
@@ -443,7 +443,7 @@ static int ejs_tree_connect(MprVarHandle eid, int argc, char **argv)
|
||||
io.in.service_type = "?????";
|
||||
io.in.credentials = creds;
|
||||
io.in.fallback_to_anonymous = False;
|
||||
io.in.workgroup = lp_workgroup();
|
||||
io.in.workgroup = lp_workgroup(global_loadparm);
|
||||
|
||||
result = smb_composite_connect(&io, mem_ctx, NULL);
|
||||
tree = io.out.tree;
|
||||
|
||||
Reference in New Issue
Block a user