Bug 7043 - database user and password for JDBC Based Store
Summary: database user and password for JDBC Based Store
Status: RESOLVED DUPLICATE of bug 25889
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 4.0.3 Final
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-12 10:11 UTC by thomas2.maesing
Modified: 2010-12-13 17:31 UTC (History)
0 users



Attachments
change JDBCStore (26.77 KB, text/plain)
2002-03-12 10:17 UTC, thomas2.maesing
Details
The popup window (1.11 KB, text/plain)
2002-03-12 10:17 UTC, thomas2.maesing
Details
Adds user and password support to JDBCStore. (2.62 KB, patch)
2003-07-02 04:50 UTC, Anthony Martin
Details | Diff
webapps/tomcat-docs/config/manager.xml (1.88 KB, patch)
2003-07-02 05:03 UTC, Anthony Martin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description thomas2.maesing 2002-03-12 10:11:14 UTC
Hi,
in my opinion the possibility to use a user with password to connect the 
database would make sense.

May be that these parameters should be asked by a popup window during starting 
of Tomcat so that they are not stored in the configuration file. Hacking the 
file system is much easier than the database.

I have attached two source file doing thi suggestion.

Best regards

Thomas Mäsing
Comment 1 thomas2.maesing 2002-03-12 10:17:03 UTC
Created attachment 1336 [details]
change JDBCStore
Comment 2 thomas2.maesing 2002-03-12 10:17:36 UTC
Created attachment 1337 [details]
The popup window
Comment 3 Anthony Martin 2003-07-02 04:50:43 UTC
Created attachment 7047 [details]
Adds user and password support to JDBCStore.
Comment 4 Anthony Martin 2003-07-02 05:03:44 UTC
Created attachment 7048 [details]
webapps/tomcat-docs/config/manager.xml
Comment 5 Anthony Martin 2003-07-02 05:08:44 UTC
I have attached two diff patches.  They are based on Tomcat 4.1.24 source.

The patch dated 07/02/03 04:50 applies to jakarta-tomcat-4.1.24-src/catalina/src/share/
org/apache/catalina/session/JDBCStore.java to support username and password 
authentication.

The patch dated 07/02/03 05:03 applies to jakarta-tomcat-4.1.24-src/webapps/tomcat-
docs/config/manager.xml to add documentation for using the new parameters in 
JDBCStore.java.
Comment 6 Mark Thomas 2010-12-13 17:31:46 UTC

*** This bug has been marked as a duplicate of bug 25889 ***