You have to get in WEB-INF a jboss-web.xml file, like that :

  | <jboss-web>
  |     <security-domain>java:/jaas/Protected-Web-Services</security-domain>
  | </jboss-web>
  | 

This file describes the realm to use. At me my web.xml is like that :

  | <login-config>
  |             <auth-method>BASIC</auth-method>
  |             <realm-name>Protected-Web-Services</realm-name>
  |     </login-config>
  | 

Thus, in your case, you have to have instead of "Protected-Web-Services", 
"TestDB" in order that works.

To help you :

  | <policy>
  |     <application-policy name="Protected-Web-Services">
  |             <authentication>
  |                     <login-module
  |                             
code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
  |                             flag="required">
  |                             <module-option name="unauthenticatedIdentity">
  |                                     guest
  |                             </module-option>
  |                             <module-option name="password-stacking">
  |                                     useFirstPass
  |                             </module-option>
  |                             <module-option name="dsJndiName">
  |                                     java:/UserWebRights-ds
  |                             </module-option>
  |                             <module-option name="principalsQuery">
  |                                     SELECT user_pass FROM users WHERE 
user_name=?
  |                             </module-option>
  |                             <module-option name="rolesQuery">
  |                                     SELECT role_name, 'Roles' FROM 
user_roles WHERE user_name=?
  |                             </module-option>
  |                     </login-module>
  |             </authentication>
  |     </application-policy>
  | </policy>
  | 

In summary, you must have the same realm name in these files.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951943#3951943

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951943


_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to