You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/12/03 17:30:00 UTC

[Bug 55839] New: DataSourceRealm doesn't handle prefix on password digest

https://issues.apache.org/bugzilla/show_bug.cgi?id=55839

            Bug ID: 55839
           Summary: DataSourceRealm doesn't handle prefix on password
                    digest
           Product: Tomcat 7
           Version: trunk
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: 897ty8723tgribvjhbvjh847rt3487rt4_dfvkjdbv23lkdm23klm@
                    megatno.com

Created attachment 31088
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31088&action=edit
Entire class with additional check for prefix.

Similar to bug #37984 which provided a fix for JNDIRealm, DataSourceRealm
should also remove prefixes of the form {SHA}, {MD5}, etc before comparing the
digests.

The attached class(sorry - corporate firewall wouldn't allow me to create a
patch) is suitable for my own needs (where the prefix is provided in lower
case, so is compared case-insensitively), but I acknowledge that a fuller fix
may be more appropriate, e.g. providing a helper method for removing known
prefixes in RealmBase.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 55839] DataSourceRealm doesn't handle prefix on password digest

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55839

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
                 OS|                            |All

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
I've added generic support for this to 8.0.x and 7.0.48 which will be included
in 7.0.48 and 8.0.0-RC6 onwards. If you are able to test this just to make sure
I didn't forget anything before those releases that would be great.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org