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?

2
  • Are you talking about the password of Apache Tomcat or dsBudget? Sep 25 '14 at 13:40
  • Basically dsbudget is a tomcat webapp, so i need to password protect that.
    – Dara G
    Sep 25 '14 at 14:00
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>
    
1
  • Thanks, I tried that and unfortunately it didn't work.
    – Dara G
    Sep 27 '14 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.