From: markt Date: Wed, 4 May 2011 20:22:08 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51119 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8ff4d5ca7ee98db8281d76aae850bb3402141fd3;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51119 Add JAAS authentication support to the JmxRemoteLifecycleListener Patch provided by Neil Laurance git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1099586 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java b/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java index b8226dfa8..2abcb56e0 100644 --- a/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java +++ b/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java @@ -69,6 +69,7 @@ public class JmxRemoteLifecycleListener implements LifecycleListener { protected boolean clientAuth = true; protected boolean authenticate = true; protected String passwordFile = null; + protected String loginModuleName = null; protected String accessFile = null; protected boolean useLocalPorts = false; @@ -164,6 +165,9 @@ public class JmxRemoteLifecycleListener implements LifecycleListener { accessFile = System.getProperty( "com.sun.management.jmxremote.access.file", "jmxremote.access"); + + loginModuleName = System.getProperty( + "com.sun.management.jmxremote.login.config"); } @@ -209,6 +213,7 @@ public class JmxRemoteLifecycleListener implements LifecycleListener { if (authenticate) { env.put("jmx.remote.x.password.file", passwordFile); env.put("jmx.remote.x.access.file", accessFile); + env.put("jmx.remote.x.login.config", loginModuleName); } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 3b3281b9c..c446855dc 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -95,6 +95,10 @@ e.g. on authentication. (markt) + 51119: Add JAAS authentication support to the + JMXRemoteLifecycleListener. Patch provided by Neil Laurance. (markt) + + 51136: Provide methods that enable the name of a Context on Context creation when using Tomcat in an embedded scenario. Based on a patch provided by David Calavera. (markt)