r26430: require explicit specification of loadparm context.
[samba.git] / source4 / scripting / ejs / smbcalls_creds.c
index 781843371a2ba9cb2b09ebee5f5daa46db209586..6dfff8f925ca48ae37e9f008f71a731545843e3b 100644 (file)
@@ -192,7 +192,7 @@ static int ejs_creds_set_machine_account(MprVarHandle eid, int argc, struct MprV
                return -1;
        }
        
-       if (NT_STATUS_IS_OK(cli_credentials_set_machine_account(creds))) {
+       if (NT_STATUS_IS_OK(cli_credentials_set_machine_account(creds, global_loadparm))) {
                mpr_Return(eid, mprCreateBoolVar(true));
        } else {
                mpr_Return(eid, mprCreateBoolVar(false));