From 2b4d706290fb2e559fd7e49a38e8eef82e28edf3 Mon Sep 17 00:00:00 2001 From: Muskan Gupta Date: Thu, 16 Jan 2025 11:33:41 +0530 Subject: [PATCH] Updated the configuration name JAAS --- src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java b/src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java index 5bbccc097..e874a44d1 100644 --- a/src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java +++ b/src/test/java/com/microsoft/sqlserver/jdbc/KerberosTest.java @@ -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());