Open henryttran opened 5 months ago
This Pull Request introduces support for Group Managed Service Accounts (gMSA).
To enable Group Managed Service Accounts support, as per the winsw XML configuration file guidelines, the element must be excluded from the configuration.
https://github.com/winsw/winsw/blob/v3/docs/xml-config-file.md#service-account
Changes:
lib/winsw.js
svc.logOnAs.gmsa
gmsa
logOnAs
lib/daemon.js
// Example usage app.js var Service = require('node-windows').Service; var svc = new Service({ name:'Hello World', script: require('path').join(__dirname,'helloworld.js'), allowServiceLogon: true }); svc.logOnAs.domain = 'mydomain.local'; svc.logOnAs.account = 'username_$'; svc.logOnAs.gmsa = true; ...
@coreybutler would you consider merging this? 😄
When I get a chance to review it/test it, yes. I'm pretty backlogged right now though.
This Pull Request introduces support for Group Managed Service Accounts (gMSA).
To enable Group Managed Service Accounts support, as per the winsw XML configuration file guidelines, the element must be excluded from the configuration.
Changes:
lib/winsw.js
to conditionally add the password to the service account configuration based onsvc.logOnAs.gmsa
property.gmsa
property tologOnAs
object inlib/daemon.js
to enable gMSA support.