<application-policy name = "application"> <authentication> <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required"> <module-option name = "dsJndiName">java:/MySqlDS</module-option> <module-option name = "principalsQuery">select password from user where user_id=?</module-option> <module-option name = "rolesQuery">SELECT role, 'Roles' FROM roles WHERE user_id = ?</module-option> <module-option name = "unauthenticatedIdentity">guest</module-option> </login-module> </authentication> </application-policy>
Just to ask the obvious: Did you actually log in as 'admin' and supply the correct password? Does "req.isUserInRole("guest")" return true?
Ping & DNS - updated with new look and Ping home screen widget
Joined: Feb 24, 2006
Yes I have supplied the necessary data (username and password, with the admin role). If you noticed on my post that when i try to deploy my application in jboss version 3.2xxx it returns true. I think It has something todo with the Jboss version.
Joined: Mar 22, 2005
In that case, let's move this to the JBoss forum, and continue the discussion among the JBoss-savvy folks.