Hosted by:
SourceForge

wrapper.ntservice.password Property
wrapper.ntservice.password Property
Configuration Property Overview
wrapper.ntservice.password

The password of the account specified in wrapper.ntservice.account. If the account does not have a password, or if the LocalSystem account is being used, then this value can be blank. The default is no password.

Example:
wrapper.ntservice.password=secret

NOTE

Changes to this property will not take effect until the service is reinstalled.

Some users have expressed concern about having a plain text password stored in the wrapper.conf file. There are a few options available for avoiding this problem. The wrapper.ntservice.password is not required once the Wrapper has been installed as a service.

  • The most obvious solution is to simply delete the property from the wrapper.conf file after the service has been installed. This has the obvious drawback of requiring a user to manually modify the file.

  • Another option is to create a second configuration file called password.conf as follows:

    password.conf
    wrapper.ntservice.password=secret

    The actual wrapper.conf file is then modified to include the password file rather than declaring the property directly:

    wrapper.conf
    wrapper.ntservice.name=myapp
    wrapper.ntservice.account=myuser
    #include ../conf/password.conf

    See the Cascading Configuration Files page for a full explanation of how include files work. The key point is that they are optional, meaning that once the wrapper has been installed as a service, the password file can simply be deleted.

  • A third option is to modify the batch file used to install the Wrapper so that it prompts the user for a password and then installs the Wrapper using the following command.

    Wrapper.exe -i ..\conf\wrapper.conf wrapper.ntservice.password=%PASSWORD%

by Leif Mortenson

last modified: