Package Exports
- impersonator
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (impersonator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
impersonator
User impersonation for windows
Install
$ npm install --save impersonatorUsage
var impersonator = require('impersonator');
var error = impersonator.logon("username", "password", "domain");
if(error) {
throw error;
}
// this runs with the token of the given user
// fs.read...
impersonator.logoff();
// return to selfAPI
impersonator.logon(username, password, domain)
Logon with the given credentials and change the token on the running proccess.
impersonator.logoff()
Clear the logged on user and return to the original logged on user.