From 747b5cce535c51d78000bdf86d0ef8f35860624d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 14 Jan 2006 07:24:15 +0000 Subject: r12929: Fix more implict global and shadowing variables. Andrew Bartlett (This used to be commit def31956181833db4c8e5079b745ca60fdf35136) --- source4/scripting/libjs/provision.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4') 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; -- cgit