diff --git a/assembly/pom.xml b/assembly/pom.xml index 5e3bb4a2e3..b75a812374 100644 --- a/assembly/pom.xml +++ b/assembly/pom.xml @@ -301,6 +301,10 @@ org.eclipse.jetty jetty-annotations + + org.eclipse.jetty + jetty-jaas + org.eclipse.jetty jetty-jndi diff --git a/assembly/src/main/descriptors/common-bin.xml b/assembly/src/main/descriptors/common-bin.xml index 7561c6ff12..e5dff72c27 100644 --- a/assembly/src/main/descriptors/common-bin.xml +++ b/assembly/src/main/descriptors/common-bin.xml @@ -255,6 +255,7 @@ org.eclipse.jetty:jetty-util org.eclipse.jetty:jetty-http org.eclipse.jetty:jetty-io + org.eclipse.jetty:jetty-jaas org.eclipse.jetty:jetty-jndi org.eclipse.jetty:jetty-plus org.eclipse.jetty:jetty-servlet diff --git a/assembly/src/release/conf/jetty.xml b/assembly/src/release/conf/jetty.xml index 6ce53142fa..dd5dcb82fb 100644 --- a/assembly/src/release/conf/jetty.xml +++ b/assembly/src/release/conf/jetty.xml @@ -1,5 +1,4 @@ - - - + @@ -75,37 +81,38 @@ - - - - - - - - - - - - - - - - - - - index.html - - - - - - - - - - + + + + + + + + + + + + + + + + + + + index.html + + + + + + + + + + - + + @@ -144,10 +151,10 @@ - - - - + + + + @@ -165,35 +172,36 @@ Enable this connector if you wish to use https with web console --> + + + + + + + + + + - + - - - - - - - - - + + + + + + + + + - - + depends-on="configureJetty, invokeConnectors"> + + + diff --git a/assembly/src/release/examples/conf/jetty-demo.xml b/assembly/src/release/examples/conf/jetty-demo.xml index d432dee5b0..ea1cbc5131 100644 --- a/assembly/src/release/examples/conf/jetty-demo.xml +++ b/assembly/src/release/examples/conf/jetty-demo.xml @@ -22,7 +22,7 @@ - + diff --git a/assembly/src/release/conf/jetty-realm.properties b/assembly/src/release/examples/conf/jetty-realm-5.x.properties similarity index 59% rename from assembly/src/release/conf/jetty-realm.properties rename to assembly/src/release/examples/conf/jetty-realm-5.x.properties index 1bce6aa816..4643126028 100644 --- a/assembly/src/release/conf/jetty-realm.properties +++ b/assembly/src/release/examples/conf/jetty-realm-5.x.properties @@ -15,7 +15,19 @@ ## limitations under the License. ## --------------------------------------------------------------------------- +## --------------------------------------------------------------------------- +## [AMQ-8391] ActiveMQ 6.x converted jetty to use a common JAAS for users and groups. +## This version of conf/jetty.xml demonstrates how to use a dedicated JAAS realm +## for authentication and authorization of web-based services such as the web console +## and rest apis. This is the config approach that was used in ActiveMQ 5.x. +## +## Rename this file to conf/jetty-realm.properties to setup user and group +## authorization following the ActiveMQ 5.x approach +## +## Note: conf/jetty-realm.properties is used to store user, password and group data +## --------------------------------------------------------------------------- + # Defines users that can access the web (console, demo, etc.) # username: password [,rolename ...] admin: admin, admin -user: user, user \ No newline at end of file +user: user, user diff --git a/assembly/src/release/examples/conf/jetty-realm-5.x.xml b/assembly/src/release/examples/conf/jetty-realm-5.x.xml new file mode 100644 index 0000000000..cb901f2a66 --- /dev/null +++ b/assembly/src/release/examples/conf/jetty-realm-5.x.xml @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + index.html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +