Skip to content

Specify user / password in windows_service.pp #3

Description

@luisfdez

Hi all,

I want to upgrade this module to support new parameters (user & pass) in windows_service.pp. This is required by the migration functionality in openstack_hyper_v as the service has to be executed as an AD user.

The basic steps to do this properly are:

  • Give the privilege SeServiceLogonRight to the given user.
  • Add it to Administrators group (I'm not sure of this one, maybe it depends on the use case).
  • Set the user data through sc.exe.

The problem is that I don't know the way to automate giving SeServiceLogonRight to the user, other than using the external tool ntrights.exe (no shipped with Windows by default).

Said that, {@ppouliot, @vijaytripathi, @virmitio, @nickme} I'd appreciate your feedback on this... how to remove that dependency on ntrights? how can be done natively?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions