Advertisement
ovichan

Untitled

Apr 8th, 2024
780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.10 KB | Source Code | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  Licensed to the Apache Software Foundation (ASF) under one or more
  4.  contributor license agreements.  See the NOTICE file distributed with
  5.  this work for additional information regarding copyright ownership.
  6.  The ASF licenses this file to You under the Apache License, Version 2.0
  7.  (the "License"); you may not use this file except in compliance with
  8.  the License.  You may obtain a copy of the License at
  9.  
  10.      http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12.  Unless required by applicable law or agreed to in writing, software
  13.  distributed under the License is distributed on an "AS IS" BASIS,
  14.  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15.  See the License for the specific language governing permissions and
  16.  limitations under the License.
  17. -->
  18. <tomcat-users xmlns="http://tomcat.apache.org/xml"
  19.              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20.              xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
  21.              version="1.0">
  22. <!--
  23.  By default, no user is included in the "manager-gui" role required
  24.  to operate the "/manager/html" web application.  If you wish to use this app,
  25.  you must define such a user - the username and password are arbitrary.
  26.  
  27.  Built-in Tomcat manager roles:
  28.    - manager-gui    - allows access to the HTML GUI and the status pages
  29.    - manager-script - allows access to the HTTP API and the status pages
  30.    - manager-jmx    - allows access to the JMX proxy and the status pages
  31.    - manager-status - allows access to the status pages only
  32.  
  33.  The users below are wrapped in a comment and are therefore ignored. If you
  34.  wish to configure one or more of these users for use with the manager web
  35.  application, do not forget to remove the <!.. ..> that surrounds them. You
  36.  will also need to set the passwords to something appropriate.
  37. -->
  38. <!--
  39.  <user username="admin" password="<must-be-changed>" roles="manager-gui"/>
  40.  <user username="robot" password="<must-be-changed>" roles="manager-script"/>
  41. -->
  42. <!--
  43.  The sample user and role entries below are intended for use with the
  44.  examples web application. They are wrapped in a comment and thus are ignored
  45.  when reading this file. If you wish to configure these users for use with the
  46.  examples web application, do not forget to remove the <!.. ..> that surrounds
  47.  them. You will also need to set the passwords to something appropriate.
  48. -->
  49. <!--
  50.  <role rolename="tomcat"/>
  51.  <role rolename="role1"/>
  52.  <user username="tomcat" password="<must-be-changed>" roles="tomcat"/>
  53.  <user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
  54.  <user username="role1" password="<must-be-changed>" roles="role1"/>
  55. -->
  56.  
  57.     <role rolename="manager-gui"/>
  58.     <role rolename="manager-script"/>
  59.     <role rolename="manager-jmx"/>
  60.     <role rolename="manager-status"/>
  61.     <role rolename="admin-gui"/>
  62.     <role rolename="admin-script"/>
  63.     <role rolename="admin"/>
  64.     <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin,admin-gui,admin-script"/>
  65. </tomcat-users>
Tags: tomcat users
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement