2 Replies Latest reply on Sep 6, 2012 8:58 PM by Felix Roske

    How do I reference to a security-domain

    Felix Roske Newbie

      Hello JBoss-Users,


      I'm new in this community and hop that this is the correct place to post this question.


      I want to use a database to perform user-authentication.

      I configured in web.xml :























      And in standalone.xml:


                     <security-domain name="FxRichFacesTest">


                              <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">

                                  <module-option name="dsJndiName" value="java:jboss/datasources/jbossDS"/>

                                  <module-option name="principalsQuery" value="select passwd from users where username=?"/>

                                  <module-option name="rolesQuery" value="select userroles,'Roles' from userroles where username=?"/>

                                  <module-option name="hashAlgorithm" value="MD5"/>

                                  <module-option name="hashEncoding" value="base64"/>





      But the subsystem doesn't check my database...

      In the log I see that it tries to check to the predefined security-domain named "other"...

      How do I connect my security-domain with my security-constraint?

      In every use-case I googled I do not see any difference to my configuration... Where is my mistake?


      Thank you very much,