This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 32082b6712 Use a constant for GSSAPI authentication name
32082b6712 is described below
commit 32082b6712ef304bb17685d9b9a3dcc8f5e83248
Author: Mark Thomas <[email protected]>
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 b45e160231..600f151f31 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
*/
@@ -2405,7 +2408,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: [email protected]
For additional commands, e-mail: [email protected]