node-windows
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
@@ -134,3 +134,4 @@ /** | ||
logmode: this.logmode, | ||
logging: config.logging | ||
logging: config.logging, | ||
allowServiceLogon: config.allowServiceLogon | ||
}); | ||
@@ -137,0 +138,0 @@ } |
@@ -124,9 +124,14 @@ module.exports = { | ||
if (config.logOnAs) { | ||
var serviceaccount = [ | ||
{ domain: config.logOnAs.domain || 'NT AUTHORITY' }, | ||
{ user: config.logOnAs.account || 'LocalSystem' }, | ||
{ password: config.logOnAs.password || '' } | ||
] | ||
if (config.allowServiceLogon) { | ||
serviceaccount.push({ allowservicelogon: 'true' }) | ||
} | ||
xml.push({ | ||
serviceaccount: [ | ||
{domain: config.logOnAs.domain || 'NT AUTHORITY'}, | ||
{user: config.logOnAs.account || 'LocalSystem'}, | ||
{password: config.logOnAs.password || ''}, | ||
{allowservicelogon: 'true'} | ||
] | ||
serviceaccount: serviceaccount | ||
}); | ||
@@ -133,0 +138,0 @@ } |
{ | ||
"name": "node-windows", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "Support for Windows services, event logging, UAC, and several helper methods for interacting with the OS.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -93,2 +93,3 @@ # node-windows | ||
//, workingDirectory: '...' | ||
//, allowServiceLogon: true | ||
}); | ||
@@ -209,3 +210,4 @@ | ||
name:'Hello World', | ||
script: require('path').join(__dirname,'helloworld.js') | ||
script: require('path').join(__dirname,'helloworld.js'), | ||
//, allowServiceLogon: true | ||
}); | ||
@@ -223,2 +225,4 @@ | ||
If you want to instruct winsw to allow service account logins, specify `allowServiceLogon: true`. This is disabled by default since some users have experienced issues running this without service logons. | ||
The other attribute is `sudo`. This attribute has a single property called `password`. By supplying | ||
@@ -225,0 +229,0 @@ this, the service module will attempt to run commands using the user account that launched the |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
179347
1496
560
9