2

I'm using dsBudget to manage my budgeting software. It's an apache tomcat web app.

Would anyone know how I can password protect it? Basically it is designed to work on a local machine, but I want to access it from multiple locations (which i can, but its not passworded)

Would anyone know how I can achieve this?

John Conde
  • 86,484
  • 28
  • 150
  • 244
navrag
  • 21
  • 1

1 Answers1

1

Tomcat can be configured to password protect the contents of a web app. Here is a tutorial about setting it up.

  1. Create tomcat-users.xml similar to this:

    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="tomcat"/>
      <user username="tomcat" password="tomcat" roles="tomcat"/>
      <user username="myname" password="mypassword" roles="tomcat"/>
      <user username="test" password="test"/>
    </tomcat-users>
    
  2. Configure the web.xml for the web app to use the basic authentication by adding the following into the <web-app> section:

    <login-config>
        <auth-method>BASIC</auth-method>
    </login-config>
    
Stephen Ostermiller
  • 99,822
  • 18
  • 143
  • 364