Hello Pid :) Time is relative to environment I guess...so how old is old for you? I downloaded the jar file from MySQL's site about the middle of 2010 and the jar file structures the class under org/gjt/mm/mysql.
As regards the encoding - right you are and wrong it is. I was misled by a posting on stackoverflow.com. The real problem lies in the fact that Tomcat does not specify any digest algorithm in the www-authenticate header of HTTP/1.1, which leads the browser to digest the password using MD5, regardless of the value of the digest attribute in the <Realm> tag. Cheers, Etienne -----Original Message----- From: Pid [mailto:p...@pidster.com] Sent: 28 January 2011 09:40 To: Tomcat Users List Subject: Re: Valid values for digestEncoding attribute? On 1/27/11 11:01 AM, Ing. Etienne V. Depasquale wrote: > I beg pardon...I should have included the following extract from my > context.xml file (with placeholders for database, user and password): > > <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" > driverName="org.gjt.mm.mysql.Driver" Are you really using such an old driver - I've got an internet archaeologist friend who'll want to look at this... What version of Tomcat/JVM do you have? > connectionURL="jdbc:mysql://localhost:3306/<databasename>?user=<username>&am > p;password=<userpassword>" > userTable="users" userNameCol="id" userCredCol="passwd" > userRoleTable="userroles" roleNameCol="role" digest="MD5" > digestEncoding="base64" /> > > > base64 is being rejected as a value for the digestEncoding attribute. That's not a valid value. The encoding, if I read the source correctly, should be UTF-8 or ISO-8859-1 or something similar. p > Cheers, > > Etienne > > > Good day, > > > > I am unable to identify valid values for the digestEncoding attribute to use > with the <Realm> tag of my app's context.xml file. > > > > I've inspected RealmBase.java and JDBCRealm.java, apart from some googling, > without finding anything suitable. > > > > Can anyone suggest a suitable reference? > > > > > > Cheers, > > > > Etienne > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org