markt 2004/10/25 11:31:57 Modified: catalina/src/share/org/apache/catalina/realm RealmBase.java Log: Enable digested credentials to be used with DIGEST authentication - The credentials must be the MD5 digest of username:realmname:password Note: The digests that must be stored for DIGEST authentication are different to those that must be stored for BASIC or FORM authentication . This isn't perfect but is better than the current situation where DIGEST just can't be used with digested credentials. Revision Changes Path 1.41 +7 -1 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java Index: RealmBase.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- RealmBase.java 5 Oct 2004 17:12:52 -0000 1.40 +++ RealmBase.java 25 Oct 2004 18:31:57 -0000 1.41 @@ -1025,6 +1025,12 @@ throw new IllegalStateException(); } } + + if (hasMessageDigest()) { + // Use pre-generated digest + return getPassword(username); + } + String digestValue = username + ":" + realmName + ":" + getPassword(username); byte[] digest =
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]