This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 85e322aa5a Use a constant for GSSAPI authentication name 85e322aa5a is described below commit 85e322aa5a315395138b1798a6dd2fc30ea90a49 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Feb 19 16:31:41 2025 +0000 Use a constant for GSSAPI authentication name --- java/org/apache/catalina/realm/JNDIRealm.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java/org/apache/catalina/realm/JNDIRealm.java b/java/org/apache/catalina/realm/JNDIRealm.java index 8362291791..2a7f52f687 100644 --- a/java/org/apache/catalina/realm/JNDIRealm.java +++ b/java/org/apache/catalina/realm/JNDIRealm.java @@ -151,6 +151,9 @@ public class JNDIRealm extends RealmBase { */ public static final String DEREF_ALIASES = "java.naming.ldap.derefAliases"; + private static final String AUTHENTICATION_NAME_GSSAPI = "GSSAPI"; + + /** * The type of authentication to use */ @@ -2406,7 +2409,7 @@ public class JNDIRealm extends RealmBase { // Preserve the current context environment parameters preservedEnvironment = context.getEnvironment(); // Set up context - context.addToEnvironment(Context.SECURITY_AUTHENTICATION, "GSSAPI"); + context.addToEnvironment(Context.SECURITY_AUTHENTICATION, AUTHENTICATION_NAME_GSSAPI); context.addToEnvironment("javax.security.sasl.server.authentication", "true"); context.addToEnvironment("javax.security.sasl.qop", spnegoDelegationQop); // Note: Subject already set in SPNEGO authenticator so no need --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org