Installing and Configuring the EmpowerID Virtual Directory Server

EmpowerID’s Virtual Directory Service (VDS) provides a robust identity virtualization service with unified, enterprise-wide security by acting as an abstraction layer between disparate data stores, including: payroll systems, HR systems, Active Directory, custom applications and other sources. EmpowerID’s VDS allows applications to interact with these data sources, without being directly connected to them.

In this topic, we used the terms "Virtual Directory Service", "VDS", and "LDAP Server" interchangeably.

The VDS is a server-side JavaScript application managed by Node.js. As such, Node must be installed on your server before the VDS can be configured for use. Additionally, the LDAP Server uses the Forever node module to keep the server up and running. The installer you received from EmpowerID checks to see if these prerequisites are installed. If they are not, installer will install them for you.

Installing and configuring the EmpowerID Virtual Directory Server involves the following:

  1. Creating a SQL Login on the EmpowerID database for the VDS (see prerequisite information)
  2. Extracting the LDAPServer.X.X.X.zip file you received from EmpowerID on your EmpowerID server and executing the LDAPServer.msi.
  3. Installing Node by executing the Node.X.X.X.msi included with the Virtual Directory Server.
  4. Installing the Forever node module. The LDAP Server uses this module to keep the server up and running.
  5. Editing the Config.txt file for your environment.
  6. Adding to the LDAP Server the SQL password for the user you set in the prerequisites above, as well as a PFX certificate and the passphrase for the certificate—if you are using TLS.
  7. Editing the index.js and Config.txt files for your environment.
  8. Saving the SQL Login password in an encrypted file.
  9. Starting the LDAP Server service.


SQL Login Prerequisite

 As the LDAP Server authenticates users against the EmpowerID database, you need to provide it with a SQL login that has rights to the EmpowerID database. Expand the below drop-down for step-by-step directions on creating the login in SQL Server. 

 To create a SQL Login
  1. Open SQL Server Management Studio.
  2. From Object Explorer, create a Login and set the Default database to the instance of the EmpowerID database in your environment. Note that SQL Serve authentication is used.



  3. From the Login Properties dialog, set the User Mapping to EmpowerID Service and public.



  4. To verify the login, open a new instance of the Connect to Server dialog, select SQL Server Authentication and enter the credentials you just created.

To install the LDAP Server

  1. Download the LDAPServer.X.X.X.zip file from the EmpowerID FTP site and extract the folder to a location of your choosing on your EmpowerID Web server.
  2. Navigate to the EmpowerID LDAP Server/LDAP Server/MSI/WiX folder in the EmpowerID installation path and locate the Virtual Directory Server.msi.
  3. Double-click the Virtual Directory Server.msi to open the EmpowerID LDAP Server Setup Wizard.
  4. From the EmpowerID LDAP Server Setup Wizard, click Next.



  5. Accept the terms of the license agreement and click Next.



  6. Select the installation destination folder and click Next.



  7. Click Install.
  8. Once the wizard finishes the installation, click Finish to exit the wizard.

To install Node and the Forever module

  1. From Windows Explorer, navigate to the EmpowerID LDAP Server/LDAP Server/MSIs folder in the EmpowerID installation path.
  2. Double-click the node installer to open the Node.js Setup Wizard.
  3. From the Node.js Setup Wizard, click Next.



  4. Accept the terms of the license agreement and click Next.
  5. Select the installation destination folder and click Next.
  6. Review the features to be installed and click Next.
  7. Click Install.
  8. Once the wizard finishes the installation, click Finish to exit the wizard.
  9. Verify the installation by opening a command prompt and typing node. You should see no errors and be entered in the command line mode of node.js.



  10. Exit the node repl by pressing the CTRL key and typing d in the command line.
  11. From the command line install the Forever node module globally by typing NPM install -g forever and pressing ENTER.

To configure Config.txt for your environment

  1. From the LDAP Server folder, locate and open the config.txt file in any text editor.
  2. From config.txt specify the following values for your environment:
    • Port - If you are using TLS, the standard port for LDAP is 636; if you are not using TLS, the standard port for LDAP is 389. However, you can use any port for either situation.
    • IP - You can specify a specific port or set the value to 0.0.0.0.
    • USE_TLS - Set to true or false based on whether you are using TLS to secure the communication between the LDAP server and the LDAP client.
    • DB_USERNAME - This is the database user you set above.
    • DB_DATABASE - This is the name of the EmpowerID database.
    • OAUTH_HOSTNAME - This the FQDN or fully resolvable DNS to the EmpowerID Web server.
    • OAUTH_PORT - Set to 443
    • OAUTH_IS_TLS - Set to true
    • WORKFLOW_HOSTNAME - This is the FQDN or fully resolvable DNS to the EmpowerID Web server hosting the EmpowerID Worker Role service.
    • WORKFLOW_SITEPATH - Set to EmpowerID
    • WORKFLOW_PORT - Set to true
    • WORKFLOW_IS_TLS Set to true
    • Specify the rotating log file settings. By default, the LDAP server rotates log daily, keeping a maximum of 10 logs in the LDAP Server > Logging folder. You can change these setting as needed.
    • Leave the rest of the settings in this file at the default.




If you need to make changes to the config.txt file beyond those listed above, it is recommended that you contact EmpowerID support.

To add the SQL password, PFX certificate and passphrase to the LDAP Server

  1. Optional - If you are using TLS, do the following in the LDAP Server folder:
    1. Create a new folder named cert and then paste the appropriate PFX certificate into the folder.
    2. From the cert folder, rename the PFX certificate file to ldaps.pfx.



  2. From the LDAP Server folder, open a command prompt and type node configure in the command prompt.
  3. Type the SQL password for the SQL user in the command line and press ENTER.
  4. If you are using TLS, type the pfx passphrase for the certificate and press ENTER.

To edit the start and forever log paths

  1. From the LDAP Server > process folder, open start.bat in any text editor.
  2. From the text editor, change the path for the forever log to reflect the installation location in your environment. This log shows the state of the LDAP server.

    In a default installation, the path should look like the following:

    forever --uid "eidVd" -s -a -l "C:\Program Files\EmpowerID LDAP Server\process\forever.log
  3. From the text editor, change the start path for the LDAP server to reflect the location of the index.js file. Node calls this file when starting the LDAP server.

    In a default installation, the path should look like the following:

    start --sourceDir="C:\Program Files\EmpowerID LDAP Server" index.js




To start and stop the LDAP server

  1. From the LDAP Server folder, open a command prompt and type node index.

    You should see that the LDAP server is listening at the specified port and IP you set in the config.txt file earlier.




  2. To stop the LDAP server, press CTRL and type c in the command window.

    You should see that the LDAP server stops.

To create a profile for EmpowerID in the LDAP browser

  1. From your LDAP browser, click New > New Profile.




  2. In the Profile Creation Wizard that appears, enter a name for the profile in the Profile Name textbox and then press the ENTER key.




  3. In step 2 of the Profile Creation Wizard, verify the host information and then click Next.




  4. In step 3 of the Profile Creation Wizard, click the Browse button to the right of the Principal field.




  5. In the Browse for USER DN dialog, expand o=empowerid > cn=people, select the appropriate EmpowerID Person, and click OK to close the dialog.




  6. In the Profile Creation Wizard, click Next to continue.




  7. Verify the LDAP settings for the profile and then click Finish to add the profile to the LDAP browser.




    You should now see a virtual directory for the default view of the EmpowerID database as determined by the LDAP Server configuration file. If desired, you can customize this file to return more or less data.


   

On this page