This content has been marked as final.
Show 1 reply
-
1. Re: authentication module
rpa_rio Jul 10, 2005 12:51 PM (in response to soussou)"soussou" wrote:
Hi;
I think that I am not the first people to realize a authentication module using jaas api.
If you have any information for that, I'am very interested
I use Jboss and I would like to implement a jaas authentication module with a Oracle database (login + password are stored into the database).
regards;
You need to add something like this to your login-config.xml:<application-policy name = "jbossmq"> <authentication> <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required"> <module-option name = "unauthenticatedIdentity">guest</module-option> <module-option name = "dsJndiName">java:/MyDatabaseDS</module-option> <module-option name = "principalsQuery">SELECT PASSWD FROM JMS_USERS WHERE USERID=?</module-option> <module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=?</module-option> </login-module> </authentication> </application-policy>