[jboss-user] [Security & JAAS/JBoss] - Re: Compare a VarBinary Password

2007-02-19 Thread aeguzmanv
Hi, and thank for your reply... I resolved the situacion easy, I just convert the bytes to Hex and change the hashEncoding to "Hex" instead of "Base64" login-config.xml java:/ServiDS SELECT Co_Clave AS Password FROM Usuario_Sistema_Internet WHERE Di_Correo=? SELECT r.de_rol AS Role, 'Roles'

[jboss-user] [Security & JAAS/JBoss] - Re: Compare a VarBinary Password

2007-02-16 Thread SmokingAPipe
Oh and to answer your question: It sounds to me like you might need to write a custom subclass of one of JBoss's LoginModule classes. It's not hard to do. But what you're doing doesn't sound like it makes sense. If your passwords are hashed, you should hex encode them before storing them, and

[jboss-user] [Security & JAAS/JBoss] - Re: Compare a VarBinary Password

2007-02-16 Thread SmokingAPipe
Why are you using var binary for storing a password? Why not just store it as chars and use some reasonable encoding, like UTF-8? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017984#4017984 Reply to the post : http://www.jboss.com/index.html?module=bb&op