Previous Topic: Obtaining the External ProgramsNext Topic: AuthMinder Plug-In Files


Invoking an External Program

You must use the InvokeExternalCommand command to invoke an External Program. The following code snippet provides a sample to invoke the External Program:

// Define callback to be invoked upon completion of
// External Program.
function cb(status, props) {
if (status != "0") {
// Something failed, check status for specifics
}
};
// Credentials are passed via the properties argument.
var props = {
account: "fred",
password: "flintstone"
};
// Invoke the VPN External Program.
var status = plugin.InvokeExternalCommand("VPN", props, cb);
if (status == 1000) {
// Program started. cb will be called when program completes.
}
else {
// Failed to initiate command, check status for specifics.
}