ACTIVEMQ is using the jetty server, open the Conf/jetty.xml file, find
<bean id= "Securityconstraint" class= "Org.eclipse.jetty.http.security.Constraint" >
<property name= "name" value= "BASIC"/>
<property name= "Roles" value= "admin"/>
<property name= "Authenticate" value= "false"/>
</bean>
Change the property name Authenticate attribute Value= "false" to "true",
The login user name password for the console is saved in the Conf/jetty-realm.properties file with the following contents:
## ---------------------------------------------------------------------------
# # Licensed to the Apache software Foundation (ASF) under one or more
# # Contributor license agreements. See the NOTICE file distributed with
# # This work for additional information regarding copyright ownership.
# # The ASF licenses this file to you under the Apache License, Version 2.0
# # (the "License"); Except in compliance with
# # The License. Obtain a copy of the License at
##
# # http://www.apache.org/licenses/LICENSE-2.0
##
# # unless required by applicable law or agreed to writing, software
# # Distributed under the License is distributed on a "as is" BASIS,
# # without warranties or CONDITIONS of any KIND, either express or implied.
# # See the License for the specific language governing permissions and
# # Limitations under the License.
## ---------------------------------------------------------------------------
# defines users that can access the Web (console, demo, etc.)
# Username:password [, rolename ...]
Admin:admin, admin
It is important to note that the format of the user name and password is
User name: password, role name
ACTIVEMQ security Settings Settings Admin username and password