Skip to main content

Setting Up Windows Authentication

Snow License Manager 9

2022-02-15

About this document

This document specifies the setup of Windows Authentication for use within Snow License Manager. This functionality is not a Snow Software feature but rather an Internet Information Services (IIS) feature that can be configured and used in Snow License Manager.

Setup

Edit Snow License Manager configuration

Start by editing the web.config file located in the folder C:\Program files\Snow Software\Snow License Manager\Web.

Set the value for the following key:

  • Activate Windows authentication:

    UseWindowsAuthentication = true

Note

When Snow License Manager (SLM) Web API is used for retrieving information from an SLM installation where Windows Authentication is enabled, an exception allowing anonymous requests must be made for the API in the SLM web configuration.

Enable Windows Authentication in IIS

  1. In IIS Manager, select the Snow License Manager site, and click Authentication.

  2. Verify that Windows Authentication is enabled and that Anonymous Authentication is disabled.

  3. Note

    The following task is only applicable when using the Snow License Manager Web API.

    Select the server that hosts the Snow License Manager site, and then click Feature Delegation. Change the following delegations to READ/WRITE:

    • Authentication - Anonymous 

    • Authentication - Basic

    • Authentication – Windows

  4. Open an elevated command prompt and run the command iisreset.

    This will restart the IIS, and force a reload of all settings and cache, applying the configuration changes made in the previous steps.

Create users in Snow License Manager

Create user accounts for the domain users that will be granted permission to use Snow License Manager.

The users are created in Snow Management and Configuration Center (Start|All Programs|SnowSoftware|Snow License Manager|Snow Management and Configuration Center).

  1. In the category menu, click Security.

  2. Click New User.

  3. On the User tab:

    1. Type User name as ADDomain\Useraccount.

    2. Type First name, Last name, and E-mail.

    3. Select Organisation and Language.

    4. Type a Password.

      A password must be set, but since it will never be used for authentication it can be set to anything.

  4. On the Roles tab, select appropriate roles for the new user.

  5. Click OK to save the new user.

  6. Repeat these steps for every user that needs to be created.

    When all users have been created, the setup of Windows Authentication is complete.

Verify setup

Open Snow License Manager in a web browser.

If your account has been setup correctly in Snow License Manager you will be forwarded directly to the main start page, without any additional login being required.

Appendix

The Snow License Manager Web API (SLM Web API) uses basic authentication. For the SLM Web API functionality to work properly, authentication requests need to be passed through to the API instead of being handled by the IIS (web server). This means that if Windows Authentication is enabled for the SLM site, an exception allowing anonymous requests must be made for the API in the SLM web configuration.

Basic authentication is also used for synchronizing images configured for applications in the Store in Automation Platform.

Add the following changes in the <configuration> section of the SLM web.config file (c:\program files\snow software\snow license manager\web\web.config):

<location path="api">
    <system.webServer>
        <security>
            <authentication>
                <anonymousAuthentication enabled="true" />
                <basicAuthentication enabled="false" />
                <windowsAuthentication enabled="false" />
            </authentication>
        </security>
    </system.webServer>
</location>
<location path="Upload/Store/Images">
    <system.webServer>
      <security>
        <authentication>
          <anonymousAuthentication enabled="true" />
          <basicAuthentication enabled="false" />
          <windowsAuthentication enabled="false" />
        </authentication>
      </security>
    </system.webServer>
  </location>

In some environments, you can't change these settings in the web.config file, and you need to configure this on the web server also:

  1. Go to IIS.

  2. Select the Server name node and select Feature Delegation.

  3. Change the following settings to Read/Write.

    • Authentication - Anonymous

    • Authentication - Basic

    • Authentication - Forms

    • Authentication - Windows

    The web.config is permitted to set authentication per path.