ACTIVEMQ security Settings-set admin username and password

Source: Internet
Author: User

ActiveMQ is using the jetty server , open conf/jetty.xml file to find

<beanid= "Adminsecurityconstraint" class= "Org.eclipse.jetty.util.security.Constraint" > <propertyname= " Name "value=" BASIC "/> <propertyname=" Roles "value=" admin "/> <!--set Authenticate=false to Disablelogin-- > <propertyname= "Authenticate" value= "true"/></bean>


       will beProperty Nameto beAuthenticateof the Propertiesvalue= "true"instead"false", Loginhttp://localhost:8161/admin/User name password is not required to enter. Authenticateof the Propertiesvalue= "true", the login username password for the console is saved in theconf/jetty-realm.propertiesin the file,The contents are as follows:

# #---------------------------------------------------------------------------# #Licensed  to the  apache software foundation  (ASF)  under one or more# #contributor   License agreements. see the notice file distributed with## thiswork  for additional information regarding copyright ownership.## TheASF  licenses this file to you under the apache license, version  2.0## (the "License"); you may not use this file except in  compliance with## thelicense. you may obtain a copy of the  license at### #http://www.apache.org/licenses/license-2.0#### unlessrequired by applicable  law or agreed to in writing, software# #distributed  under the  license is distribuTed on an "As is" basis,## withoutwarranties or conditions of any  kind, either express or implied.## seethe license for the  specific language governing permissions and# #limitations  under the license. # #--------------------------------------------------------------------------- # Definesusers  that can access the web  (console, demo, etc.) #username:  password [,rolename&nbsp ...] admin:admin, adminuser:user, user  notable is the user name and password format is: username  :  password  , role name.




This article is from the "Good Big Knife" blog, please make sure to keep this source http://53cto.blog.51cto.com/9899631/1721374

ACTIVEMQ security Settings-set admin username and password

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.