DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5404>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5404

Can't set username/password in JDBCRealm with mysql driver

           Summary: Can't set username/password in JDBCRealm with mysql
                    driver
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Other Connectors
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello,
I'm using the JDBCRealm with mmmysqldriver (latest release, 2.0.7).
I have the following problem: it seems like the driver can't "see" the user and 
password information I set in the connectionURL attribute, so I can connect to mysql 
only if I leave no user/password restriction on the user table in mysql.
Since this is a great security risk, I would like to understand how to overcome this 
problem.
Checking the documentation of mysql driver seems like it requires an URL of this 
kind:
jdbc:mysql://localhost/tomcat?user=xxx&password=yyy
while the <Realm> tag not allows the use of an ampersand in the connectionURL 
attribute, infact the example given is:
jdbc:mysql://localhost/tomcat?user=xxx;password=yyy
Notice the use of ";" in place of the "&"

Where am I wrong?
A little help would be very appreciated.

Thanks,
Alex

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to