Skip to content

Commit 30f3c49

Browse files
committed
feat: point jvm to use custom krb5.conf
1 parent b4dfebe commit 30f3c49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fluss-common/src/test/java/org/apache/fluss/security/auth/sasl/gssapi/GssapiSaslAuthTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ void setup() throws Exception {
9393
// and force it to recognize the new settings.
9494
File customKrb5Conf = new File(workDir, "krb5-custom-" + UUID.randomUUID() + ".conf");
9595
Files.write(customKrb5Conf.toPath(), krb5Content.getBytes());
96+
97+
// Point the JVM to use our custom krb5.conf for Kerberos operations.
98+
System.setProperty("java.security.krb5.conf", customKrb5Conf.getAbsolutePath());
9699
}
97100
}
98101

0 commit comments

Comments
 (0)