@@ -63,8 +63,8 @@ public abstract class AbstractTest {
63
63
protected static String [] keyIDs = null ;
64
64
65
65
protected static String linkedServer = null ;
66
- protected static String remoteUser = null ;
67
- protected static String remotePassword = null ;
66
+ protected static String linkedServerUser = null ;
67
+ protected static String linkedServerPassword = null ;
68
68
protected static String [] enclaveServer = null ;
69
69
protected static String [] enclaveAttestationUrl = null ;
70
70
protected static String [] enclaveAttestationProtocol = null ;
@@ -201,8 +201,8 @@ public static void setup() throws Exception {
201
201
clientKeyPassword = getConfiguredProperty ("clientKeyPassword" , "" );
202
202
203
203
linkedServer = getConfiguredProperty ("linkedServer" , null );
204
- remoteUser = getConfiguredProperty ("remoteUser " , null );
205
- remotePassword = getConfiguredProperty ("remotePassword " , null );
204
+ linkedServerUser = getConfiguredProperty ("linkedServerUser " , null );
205
+ linkedServerPassword = getConfiguredProperty ("linkedServerPassword " , null );
206
206
207
207
kerberosServer = getConfiguredProperty ("kerberosServer" , null );
208
208
kerberosServerPort = getConfiguredProperty ("kerberosServerPort" , null );
@@ -267,7 +267,6 @@ protected static void setupConnectionString() {
267
267
// If these properties are defined then NTLM is desired, modify connection string accordingly
268
268
String domain = getConfiguredProperty ("domainNTLM" );
269
269
String user = getConfiguredProperty ("userNTLM" );
270
- String password = getConfiguredProperty ("passwordNTLM" );
271
270
272
271
if (null != domain ) {
273
272
connectionStringNTLM = TestUtils .addOrOverrideProperty (connectionStringNTLM , "domain" , domain );
@@ -277,11 +276,7 @@ protected static void setupConnectionString() {
277
276
connectionStringNTLM = TestUtils .addOrOverrideProperty (connectionStringNTLM , "user" , user );
278
277
}
279
278
280
- if (null != password ) {
281
- connectionStringNTLM = TestUtils .addOrOverrideProperty (connectionStringNTLM , "password" , password );
282
- }
283
-
284
- if (null != user && null != password ) {
279
+ if (null != user ) {
285
280
connectionStringNTLM = TestUtils .addOrOverrideProperty (connectionStringNTLM , "authenticationScheme" ,
286
281
"NTLM" );
287
282
connectionStringNTLM = TestUtils .addOrOverrideProperty (connectionStringNTLM , "integratedSecurity" , "true" );
@@ -350,6 +345,9 @@ protected static ISQLServerDataSource updateDataSource(String connectionString,
350
345
case Constants .INTEGRATED_SECURITY :
351
346
ds .setIntegratedSecurity (Boolean .parseBoolean (value ));
352
347
break ;
348
+ case Constants .SERVER_NAME :
349
+ ds .setServerName (value );
350
+ break ;
353
351
case Constants .USER :
354
352
case Constants .USER_NAME :
355
353
ds .setUser (value );
0 commit comments