Installing and Licensing EmpowerID

EmpowerID uses multiple Windows services to host job functions as well as a variety of IIS Web REST Services to perform its processing. Each of the Windows Services and the IIS Application Pool Identities require a user identity (service account) with the necessary privileges to access the EmpowerID database. Before you install EmpowerID, you should first create these accounts, giving them the necessary access rights to interact with the EmpowerID database and the local machine on which EmpowerID is installed. To delegate the necessary access rights, EmpowerID recommends you follow the security practice of least privilege by granting service accounts the minimum access needed to perform the tasks associated with each. To implement least privilege, you will need to do the following:

  • Create one or more service accounts for running the EmpowerID Windows services and EmpowerID IIS app pools
  • Create a user account on the server hosting the EmpowerID Identity Warehouse and give that account read and write access to the database backup folder, as well as the ability to restore a SQL database
  • Restore the EmpowerID Identity Warehouse using the above specified user account
  • Create SQL logins for each service account and grant those logins the required rights to the EmpowerID Identity Warehouse
  • Install EmpowerID using the specified local admin account
  • On each server hosting an EmpowerID installation, grant the service accounts the required permissions needed to GAC EmpowerID assemblies and perform everyday operations.


This article takes you through each of these steps, demonstrating how to install EmpowerID using the recommended least privilege configuration. 

To install EmpowerID using least privilege

  1. Create an EmpowerID service account for your domain. This account will be used to set the least privileges needed to support GAC'ing EmpowerID assemblies and performing everyday operations. After you create the account, retrieve its SID. The SID will be used to grant the account the necessary privileges to run each EmpowerID Windows service.

  2. Create an application pool account for your domain. This account will be used to run the EmpowerID application pools. After you create the account, retrieve its SID. The SID will be used to grant the account the necessary permissions to run each EmpowerID Windows service. 


  3. Create a local user account on the SQL server that is to host the EmpowerID SQL Identity Warehouse and give the account read and write access to the database backup folder.
  4. Create a SQL login for the above user account and grant the login the ability to restore a SQL database. 
  5. Log in to the SQL server as the above user and restore the EmpowerID database by doing the following:
    1. Right-click the Databases node and select Restore Database.
    2. Under Source, select Device and enter the path to the EmpowerID.bak folder.
    3. Under Destination, enter EmpowerID (to avoid the longer database name).
    4. Click OK to restore the database. This process takes several minutes.

  6. On the SQL Server, create logins for each service account and give those accounts the right to alter the database. Specifically, each service account must have the following database capabilities:
    • Connect
    • Authenticate
    • Execute
    • Delete
    • Insert
    • Select
    • Update
    • Alter — Needed on the following tables only to allow for truncation:
      • PersonOrgRoleOrgZoneReEvalTempAccountData
      • PersonOrgRoleOrgZoneReEvalTempPersonData
      • PersonManadatoryAttributesTemp
      • PersonMandatoryAttributesTempPreview
      • PersonMandatoryAttributesOverwritePreview
      • AccountObjectAttributeOutboxPreview

  7. Next, log in to the server that is to host the EmpowerID installation as a local administrator and open the EmpowerID.msi.
  8. In the EmpowerID Server Setup that appears, click Next to begin the installation.



  9. Accept the license agreement and click Next to continue.



  10. Review the path where EmpowerID will be installed and click Next. If you want to install EmpowerID in a different directory, click the Change button to choose a new path and then click Next.



  11. Click Install to begin the installation.



  12. Wait for the installer to complete the installation and then click Finish to close the installer.




To configure your EmpowerID installation

  1. From the Start menu, search for the EmpowerID Configurator, right-click it and select Run as administrator from the context menu.

    EmpowerID Configurator opens. You use the configurator to connect EmpowerID to your SQL server, license your copy of EmpowerID, as well as to configure default email settings, certificates, IIS Web Sites, and the EmpowerID Windows services.





  2. From the General Settings tab of the EmpowerID Configurator, do the following:
    1. In the SMTP Server field, type the FQDN of the Exchange server EmpowerID should use for sending any automated emails generated by the system.
    2. In the Email Address field, type the default email address EmpowerID should use for sending any automated emails generated by the system.
    3. Type the licensing key you received from EmpowerID in the License Key field and then click the Add License File (...) button.



    4. In the Open File dialog that appears, locate and select the EmpowerID License File (.eidlic) you received from EmpowerID and then click Open.

  3. From the SQL Connection tab of the EmpowerID Configurator, do the following:
    1. Type the name or IP address of the SQL server you are using for EmpowerID in the Server Name field.
    2. Under Authentication, select Windows Authentication.

    3. Select the EmpowerID database from the Database Name drop-down.
    4. Test the connection by clicking Test Connection.



    5. Click OK to close the connection message.

  4. From the Web Server tab of the EmpowerID Configurator, do the following:
    1. Type the FQDN of your EmpowerID Web server in the Web Server URL field. Be sure to use the https scheme.
    2. Select an existing Web site to host the EmpowerID Web application from the IIS Website drop-down or enter a name to create a new site. By default, EmpowerID selects the Default Web site.
    3. Under SSL Certificate, click Browse, choose whether to select the SSL certificate from the local certificate store or browse for the certificate PFX file and then click OK.
    4. Locate and select the SSL certificate you want to use for encrypting EmpowerID communications and click Open.
    5. In the Password field of the Enter Certificate Details dialog that appears, enter a password and then click OK to close the dialog. 





    6. Enter the Username and Password for the service account running the EmpowerID application pools.




  5. From the System Certificates tab of the EmpowerID Configurator, do the following:
    1. Under Federation Certificate, click the Browse button and select the STS certificate EmpowerID should use for signing SAML assertions. The format for the certificate is PFX.

    2. In the Password field of the Enter Certificate Details dialog that appears, enter a password and then click OK to close the dialog. 
    3. Under Server System Access Certificate, click the Generate button.
    4. In the Password field of the Enter Certificate Details dialog that appears, enter a password and then click OK to close the dialog. 
    5. Review the information in the Certificate information window that appears and then click OK to close the window.



  6. From the Services tab of the EmpowerID Configurator, do the following:
    1. Underneath Windows Services, select each EmpowerID Windows service you want to install on the server, providing the user name and password for the service account identity that is to run each. These services include the following:
      • EmpowerID Web Role Service — This service is required on all EmpowerID Web servers and is responsible for managing workflow-related services and global assembly cache content synchronization.
      • EmpowerID Worker Role Service — This service must be on a server with IIS installed and is responsible for processing the EmpowerID Web Service Garden as well as running scheduled EmpowerID jobs and long running tasks, such as RBAC security compilation and inventory processing.
      • EmpowerID Radius Service — This service provides RADIUS authentication for routers, switches and other RADIUS-compliant devices



    2. If you are using Reporting Services for EmpowerID reports, underneath Reporting Services do the following:
      • Type your report server web service URL in the Report Server URL field.
      • Type the report server folder name in the Report Server Folder field.
      • Type the SAML service provider connection for SSRS in the SAML Connection field.

  7. From the Miscellaneous tab of the EmpowerID Configurator do the following:
    1. To use a separate CDN (Content Delivery Network) in place of your default EmpowerID Web server to deliver the CSS, image and script files used by the EmpowerID Web application, type the URL to the CDN in the CDN Server URL field. 

    2. Deselect Enable Minification if you do not want to minify the CSS and JavaScript files. Please note that minification is recommended.

  8. Click the Summary tab and review the changes you are about to make to the system and click Save when ready.



  9. Click Yes when asked if you want to apply all the changes.
  10. Click OK to close the Settings have been saved dialog.
  11. Optionally, from the Export Options tab, do the following:
    1. Select each file you want to export.
    2. Click the EmpowerID MSI ellipses button (...) and browse to the EmpowerID MSI file location on your server.
    3. Select the MSI and click Open.
    4. Select the folder for the exported files by clicking the Output Folder ellipses (...) button and browsing to the desired folder.
    5. Click Export and then click OK to close the Export Success message.

  12. From the Start menu, open Internet Information Services (IIS) Manager and do the following:



    1. In the Connections pane, expand Sites and select your EmpowerID site.
    2. In the Actions pane, click Basic Settings.
    3. In the Edit Site dialog that appears, change the Physical Path to a path like the following:
      C:\Program Files\TheDotNetFactory\EmpowerID\Web Sites\EmpowerID.Web.SiteRoot

    4. Click OK to save the setting.

  13. Open Services.msc and stop the EmpowerID Web Role Service.

    Now that you have installed and configured EmpowerID, the next step is to grant your dedicated EmpowerID service account the access to a number of folders and files on your EmpowerID server,. permissions for EmpowerID Windows services and local machine rights that account needs to run EmpowerID.

To grant local machine rights

The EmpowerID service account interacts with the local machine to perform a variety of maintenance procedures, including the distribution and maintenance of new workflows and other Workflow Studio published items. The service account needs the following access rights on the local machine:

  • Install files in to the local global assembly cache (GAC)
  • Read the registry
  • Read certificates in the local certificate store
  • Spin child processes
  • Run C# compiler in the background if and when necessary
  • create files in the temp folder
  • Run remote PowerShell for Microsoft Exchange, if that Server Role is enabled in EmpowerID
  • Create files and folders in the following locations:
    • C:\ProgramData
    • C:\Program Files\TheDotNetFactory\Programs

To grant these rights, run the following PowerShell cmdlet in administrative mode on the local machine.


After running the above cmdlet, verify that the service account has full permissions to the below files, folders and registry key. These permissions are needed to support installing files to the local global assembly cache (GAC):

  • %windir%\assembly 
  • %windir%\Microsoft.Net\assembly
  • %windir%\Microsoft.Net\Framework64\v4.0.30319\ngen.log
  • EmpowerID Installation folder
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default

After running the above cmdlet, verify that the service account has read permissions to the following folder, as well as full permissions to the registry key. These permissions are needed to support the day-to-day operations of EmpowerID:

  • %windir%\System32\inetsrv\config
  • HKEY_LOCAL_MACHINE\SOFTWARE\TheDotNetFactory


To grant rights to the application pool identity

The application pool identity requires read access to the EmpowerID web site folders. Additionally, the application pool identity needs to be able to restart the EmpowerID Windows services. To grant the necessary permissions to the Windows services do the following:

  1. Retrieve the SID for the EmpowerID Web Services application pool account.
  2. Open a command prompt in administrative mode and display the security descriptor for the EmpowerID Web Role Service by running the below command for the EmpowerID Web Role Service. In the command, we are writing the output to a text file named "EIDWebRole_SecurityDescriptor."


  3. Run the following command to open the text file: 


     You should see the following output in the text file:


  4. Locate and copy the permissions for the Built-in administrators so that the file looks as follows: 


  5. In the second set of permissions for the Built-in administrators, replace BA with the SID of the application pool account so that the file looks similar to that shown below. Please note that the SID for your account will differ accordingly.


  6. Return to the command prompt and set the new security permissions. 


  7. Repeat steps 2 through 6 above for the EmpowerID Worker Role Service.

  8. When ready, start the EmpowerID Web Role Service to GAC EmpowerID DLLs.

    This completes installing EmpowerID for least privilege.



In this article