...
Open the "server.xml" file in a text editor such as Notepad++. Locate the text similar to the following:
...
language | xml |
---|
<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="yyyy" |
...
type="javax.sql.DataSource" |
...
...
validationQuery="Select |
...
1" |
...
/> |
Make the following changes:
- Remove the attribute: factory="com.deepnet.dualshield.encryption.EncryptedDataSourceFactory"
- Remove the attribute: username="xxxx"
- Remove the attribute: password="yyyy"
- 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"/> |
As you have noticed, the username/password are removed, and a new attribute: integratedSecurity=true is added.
...