Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As you know, DualShield uses a SQL database as its data storage. In the DualShield installation process, you have the option options to connect DualShield to either the an internal MySQL server or an external MS-SQL or Oracle server. If you select to connect to an external SQL server then you will need to provide a SQL service account to make the connection. Some customers asked if they could use a Windows account instead. The answer is yes, but not in the installation process. You will have to use a temporary SQL account during installtioninstallation. After installation, you can switch to a Windows account.

The instruction below describes how to switch to a Windows account after the DualShield server has been successfully installed.

Table of Contents

Change the JDBC Connection String

You might also know that DualShield uses JDBC to connect to SQL server. Let us first check the original connection string in We need to change the JDBC connection settings first. In a Windows Explorer window navigate to:

C:\\Program File\Deepnet DualShield\Tomcat\Config

Open the "server.xml" file in a text editor such as Notepad++. Locate the text similar to the following:

<Resource driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" factory="com.deepnet.dualshield.encryption.EncryptedDataSourceFactory" maxActive="1000" maxIdle="2" maxWait="5000" name="jdbc/DasDS" username="xxxx" password="

...

...

  validationQuery="Select 1" />

...


Make the following changes:

  1. Remove the attribute: factory="com.deepnet.dualshield.encryption.EncryptedDataSourceFactory"
  2. Remove the attribute: username="xxxx"
  3. Remove the attribute: password="yyyy"
  4. Add "integratedSecurity=true;" in the value of the "url" attribute

...


<Resource driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" maxActive="1000" maxIdle="2" maxWait="5000" name="jdbc/DasDS" type="javax.sql.DataSource" url="jdbc:sqlserver://192.168.208.2:1433;DatabaseName=dualshield2;SelectMethod=cursor; integratedSecurity=true;" validationQuery="Select 1"/>


In the new string, there is no As you have noticed, the username/password , instead it has are removed, and a new attribute: integratedSecurity=true

Is that all? No, I am afraid. You need to do the following:

is added.

Once you have made the above change, save the "server.xml" file and exit the text editor.

Update JDBC Driver 

Depending on the version of your MS-SQL server, you might need to download the latest Microsoft JDBC driver

https://docs.microsoft.com/en-us/sql/connect/jdbc/release-notes-for-the-jdbc-driver

Unzip it to a temp folder on your local hard drive, then carry out the following operations:

1) In the temp folder find the file "mssql-jdbc-x.x.x.jre8.jar" and copy it to the folder "Download Microsoft JDBC Driver 4.0 for SQL Server, unzip it to somewhere, find the file sqljdbc4.jar, replace the one under C:\Program Files\Deepnet DualShield\tomcat\lib". Replace the old file when prompted.

Image Added

Image Added


2) In the temp folder find the file sqljdbc"mssql-jdbc_auth.dll-x.x.x.x64.dll" (make sure use you select the right correct version x64/x86 , it depends on according to your DualShield/OS version)

Image Removed

, copy it to the folder "C:\Program Files\Deepnet DualShield\tomcat\lib

Add a Java option

"

Image Added

Image Added


Update JAVA Settings

Now, you need to add a Java option. In order to do that, you need to launch the JAVA Configure Console:

Open Windows Command Prompt, change to the "C:\Program Files\Deepnet DualShield\tomcat\bin" folder, then execute

tomcat6w.exe //ES//dualshield

  Image Added

Image Added

Navigate to the tab Java add -Djava.library.path=C:\Program Files\Deepnet DualShield\tomcat\lib

Image Removed

...

 in Java Options , click Apply or OK button.

Change DualShield Service Logon Account

Check the property of the DaulShield service

By default, it logs on as "Local System account", you need to change to a windows account which is assigned some with appropriate SQL permissions

 


Change DualShied Folder Access Permissions

If Note: if DualShiled is installed on the same machine where the SQL server is installed, you may still be able to use "Local System account". ConsequentlyOtherwise, you may need to add that must give the Windows account (in the example, spadmin@ds08.local) onto the full control to the folder "Deepnet DualShield" folder, allow allowing it to have write privilege on this folder, otherwise it may cause problem.

Image Removed

 

read, write & modify the folder and all of its sub folders. See below:

Image Added