Skip to main content

GlassFish 4 JDBCRealm Password Encryption Algorithm

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
jobor
Offline
Joined: 2007-01-10

Hello,

When I create a JDBCRealm according to the attachment I can't log in with DIGEST authentication into the web app.

(part of the web.xml to force DIGEST authentication)

<login-config>
        <auth-method>DIGEST</auth-method>
        <realm-name>PibSecureUserRealm</realm-name>
</login-config>

The passwords in the MySQL database are encrypted with the MySQL MD5() function.

But when I change the property "Password Encryption Algorithm" to "none" and store the passwords as plain text, the DIGEST authentication of the web app works and am able to login.
So DIGEST authentication only works now in GlassFish 4 with plain text passwords in the database.

Question:

How can I use MD5 encrypted passwords with the JDBCRealm and DIGEST authentication?

T.I.A.

Johan Borchers

AttachmentSize
1.png183.91 KB

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
henrykozhaya
Offline
Joined: 2014-03-21

Hello,

I have the same problem, so let me know if you resolved it!

Thank you