Added details how to disable login in web consoles.

This commit is contained in:
Claus Ibsen 2013-10-07 12:50:00 +02:00
parent 75c659f122
commit 0da02fca9d
3 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,8 @@ same VM as the broker. The console is accessibly under http://localhost:8161/haw
The broker may ask for credentials to login the web console the first time.
The default username and password is admin/admin. You can configure this in the
conf/jetty-real.properties file.
conf/jetty-real.properties file. And in the conf/jetty.xml file you can configure
to disable login for the web consoles.
However it's also possible to start the web console in a separate VM and connect it
to the broker via JMS and JMX. The reasons to do so may include increased reliability

View File

@ -161,6 +161,7 @@
<!--
Enable web consoles, REST and Ajax APIs and demos
The web consoles requires by default login, you can disable this in the jetty.xml file
Take a look at ${ACTIVEMQ_HOME}/conf/jetty.xml for more details
-->

View File

@ -28,11 +28,13 @@
<bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint">
<property name="name" value="BASIC" />
<property name="roles" value="user,admin" />
<!-- set authenticate=false to disable login -->
<property name="authenticate" value="true" />
</bean>
<bean id="adminSecurityConstraint" class="org.eclipse.jetty.util.security.Constraint">
<property name="name" value="BASIC" />
<property name="roles" value="admin" />
<!-- set authenticate=false to disable login -->
<property name="authenticate" value="true" />
</bean>
<bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">