Set up MediaBeacon database authentication using Windows authentication.
Microsoft SQL server authentication can be handled by either the database server or a Windows domain server. MediaBeacon uses Microsoft SQL server to handle authentication by default, using the database username and password configured for connection to MediaBeacon software.
To use a Windows domain server to handle the authentication instead of Microsoft SQL, the (jTDS) JDBC driver must be installed in the Java Classpath on each server being used for the MediaBeacon system. In this case, leave the "User" and "Password" fields blank in the Enterprise Tab of the MediaBeacon Server-Side GUI App.
This guide assumes that MediaBeacon has already been installed, configured, and is running. This means that a database has already been created, connected with the MediaBeacon software, and that SQL server authentication is already being used.
Setting up Windows authentication prior to an installation is possible and will require fewer steps. For setting up Windows authentication prior to an installation, follow the directions below, taking care to remove any instruction regarding shutting down and restarting services.
Installation of the jTDS JDBC driver onto each server running MediaBeacon software is required to allow for Windows authentication from MediaBeacon to MSSQL.
- Download the driver from this website: http://jtds.sourceforge.net/
- You will need to download the version of the driver as the
jTDS.jar
file packaged with MediaBeacon, version 1.3.1.
- The zip archive containing the files needed for the installation is:
jTDS dist.zip
. - Unzip the folder and locate the DLL file located here within the downloaded folder:
x64\SSO\ntlmauth.dll
.- Note that there are x64 and x86 folder paths, most of the time x64 is used. Ensure that the folder path matches the architecture of the server’s Java Runtime Environment (JRE).
- Copy the ntlmauth.dll file to the desktop on each server running a piece of MediaBeacon software. This includes Core, Preview, Webhead, and any Research nodes. The MSSQL database does not need this DLL file installed.
- Locate the Java native library folder path of the JRE installed on the MediaBeacon server. For example:
Program Files\Java\jre1.8.0_151\bin\
. - Move the
ntlmauth.dll
file from the server’s desktop to this bin folder. - Shut down all MediaBeacon software, MediaBeacon services that are running, and any Java Virtual Machines (JVMs).
- Repeat this process for each server requiring the installation of the
ntlmauth.dll
file. - Do not restart the MediaBeacon software components until completing the next sections.
Once the jTDS JDBC driver is installed on the appropriate servers, configure the Windows user account . This is the account (typically "Administrator") used to install each MediaBeacon service as an admin in the database being used by MediaBeacon.
If the same Windows user account was used to install MediaBeacon during the setup of the MSSQL database, this user should already be added to the MSSQL database. Ensure that this user is configured as an administrator.
If the Windows user account has not been added as a user in the MediaBeacon database, add the account and ensure it is configured as an administrator.
- Switch back to the MediaBeacon Core server and start the service.
- Under the Enterprise tab in the MediaBeacon Server-Side GUI App, remove the username and password, leaving them blank. All other fields are unchanged.
- Click Apply.
- Switch to the Admin tab, and click Start.
- The MediaBeacon system will now start and connect with the MSSQL database via Windows authentication rather than SQL authentication.