Skip to content

Commit

Permalink
Updated the configuration name JAAS
Browse files Browse the repository at this point in the history
  • Loading branch information
muskan124947 committed Jan 16, 2025
1 parent efe75af commit 2b4d706
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ public void testKerberosConnectionWithDefaultJaasConfig() {
createKerberosConnection(connectionString);

Configuration config = Configuration.getConfiguration();
AppConfigurationEntry[] entries = config
.getAppConfigurationEntry(SQLServerDriverStringProperty.JAAS_CONFIG_NAME.getDefaultValue());
AppConfigurationEntry[] entries = config.getAppConfigurationEntry("CLIENT_CONTEXT_NAME");
Assertions.assertNotNull(entries);
Assertions.assertTrue(entries.length > 0);
Assertions.assertEquals("com.sun.security.auth.module.Krb5LoginModule", entries[0].getLoginModuleName());
Expand Down

0 comments on commit 2b4d706

Please sign in to comment.