Skip to content

Commit

Permalink
Updated setting configuration in test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
muskan124947 committed Jan 29, 2025
1 parent 1eed561 commit 5b37c66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ final class KerbAuthentication extends SSPIAuthentication {
private boolean useDefaultNativeGSSCredential = false;
private GSSContext peerContext = null;

static {
// Set the JAAS configuration programmatically if not already set
if (null == Configuration.getConfiguration().getAppConfigurationEntry("SQLJDBCDriver")) {
Configuration.setConfiguration(new JaasConfiguration(Configuration.getConfiguration()));
}
}

/**
* Initializes the Kerberos client security context
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class KerberosTest extends AbstractTest {

@BeforeAll
public static void setupTests() throws Exception {
Configuration.setConfiguration(new JaasConfiguration(Configuration.getConfiguration()));
setConnection();
}

Expand Down

0 comments on commit 5b37c66

Please sign in to comment.