Here is something from our testsuite.

form-auth.ear
==========

  | = form-auth-roles.properties
  | =form-auth-users.properties
  | =form-auth.war
  | =jboss-service.xml
  | META-INF
  | |
  | ----------------- application.xml
  | ----------------- jboss-app.xml
  | ----------------- security-config.xml
  | 

Let me show you the important files:


jboss-service.xml
---------------------

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <server>
  |    <!-- The custom JAAS login configuration that installs 
  |        a Configuration capable of dynamically updating the
  |        config settings
  |    -->
  |    <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
  |       name="jboss.security.tests:service=LoginConfig">
  |       <attribute name="AuthConfig">META-INF/security-config.xml</attribute>
  |       <depends optional-attribute-name="LoginConfigService">
  |          jboss.security:service=XMLLoginConfig
  |       </depends>
  |       <depends optional-attribute-name="SecurityManagerService">
  |          jboss.security:service=JaasSecurityManager
  |       </depends>
  |    </mbean>
  | </server>
  | 


security-config.xml
----------------------

  | <?xml version='1.0'?>
  | <!DOCTYPE policy PUBLIC
  |       "-//JBoss//DTD JBOSS Security Config 3.0//EN"
  |       "http://www.jboss.org/j2ee/dtd/security_config.dtd";>
  | 
  | <!-- The JAAS login configuration file for the java:/jaas/jbossweb-form-auth
  | security domain used by the security-spec test case
  | -->
  | <policy>
  | 
  |     <application-policy name = "jbossweb-form-auth">
  |        <authentication>
  |           <login-module code = 
"org.jboss.security.auth.spi.UsersRolesLoginModule"
  |              flag = "required">
  |              <module-option name = 
"unauthenticatedIdentity">nobody</module-option>
  |              <module-option 
name="usersProperties">form-auth-users.properties</module-option>
  |              <module-option 
name="rolesProperties">form-auth-roles.properties</module-option>
  |           </login-module>
  |        </authentication>
  |     </application-policy>
  | </policy>
  | 


jboss-app.xml
============

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE jboss-app
  |     PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN"
  |     "http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd";>
  | 
  | <jboss-app>
  |    <module>
  |       <service>jboss-service.xml</service>
  |    </module>
  | </jboss-app>
  | 


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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to