Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all articles
Browse latest Browse all 1091

GlassFish 4 JDBCRealm Password Encryption Algorithm

$
0
0

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

Viewing all articles
Browse latest Browse all 1091

Trending Articles