diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-01-14 07:24:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:07 -0500 |
commit | 747b5cce535c51d78000bdf86d0ef8f35860624d (patch) | |
tree | 77543791829938c8ac22750779696c242a7474d0 /source4/scripting | |
parent | f3db23ac75578198ee411b21a7ba2ec49dedafab (diff) | |
download | samba-747b5cce535c51d78000bdf86d0ef8f35860624d.tar.gz samba-747b5cce535c51d78000bdf86d0ef8f35860624d.tar.bz2 samba-747b5cce535c51d78000bdf86d0ef8f35860624d.zip |
r12929: Fix more implict global and shadowing variables.
Andrew Bartlett
(This used to be commit def31956181833db4c8e5079b745ca60fdf35136)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/libjs/provision.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js index 2b04aa6791..59bc9cac30 100644 --- a/source4/scripting/libjs/provision.js +++ b/source4/scripting/libjs/provision.js @@ -559,17 +559,17 @@ function join_domain(domain, netbios_name, join_type, creds, message) function vampire(domain, session_info, credentials, message) { var ctx = NetContext(credentials); - vampire = new Object(); + var vampire_ctx = new Object(); var machine_creds = credentials_init(); machine_creds.set_domain(form.DOMAIN); if (!machine_creds.set_machine_account()) { message("Failed to access domain join information!"); return false; } - vampire.machine_creds = machine_creds; - vampire.session_info = session_info; - if (!ctx.SamSyncLdb(vampire)) { - message("Migration of remote domain to Samba failed: " + vampire.error_string); + vampire_ctx.machine_creds = machine_creds; + vampire_ctx.session_info = session_info; + if (!ctx.SamSyncLdb(vampire_ctx)) { + message("Migration of remote domain to Samba failed: " + vampire_ctx.error_string); return false; } return true; |