sorry given little detail Tomcat 5.5 JVM 1.5 OS linux On Thu, Aug 13, 2009 at 12:21 PM, Pid <p...@pidster.com> wrote:
> Tomcat version? > JVM version? > OS version? > > p > > > > On 13/08/2009 10:37, Lin Chun wrote: > >> hi, >> I am using the JDBCRealm , but the password of user is not pure text, but >> stored in base64 encoding >> >> Followd the doc, seems I have to set the digest , but I don't know which >> digest and digestEncoding should I use? >> >> >> that's what I do now >> ------------------ >> <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" >> driverName="org.gjt.mm.mysql.Driver" >> >> >> connectionURL="jdbc:mysql://localhost/hibernate?user=root&password=root" >> userTable="users" userNameCol="USERNAME" userCredCol="PASSWORD" >> userRoleTable="granted_authorities" roleNameCol="AUTHORITY"/> >> ------------------ >> ------------------ >> <security-constraint> >> >> <web-resource-collection> >> <web-resource-name> >> Entire Application >> </web-resource-name> >> <url-pattern>/*</url-pattern> >> </web-resource-collection> >> <auth-constraint> >> <role-name>Admin</role-name> >> </auth-constraint> >> >> </security-constraint> >> <login-config> >> >> <auth-method>BASIC</auth-method> >> <realm-name>Login Authority</realm-name> >> >> </login-config> >> <security-role> >> >> <role-name>Admin</role-name> >> >> </security-role> >> ------------------- >> >> Regard, >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- ------------------------- Lin Chun Mike Ditka <http://www.brainyquote.com/quotes/authors/m/mike_ditka.html> - "If God had wanted man to play soccer, he wouldn't have given us arms."