Sorry, the configuration didn't come through properly last time, here it is 
again.

web.xml

   <security-constraint>
  |       <web-resource-collection>
  |         <web-resource-name>AllJSPs</web-resource-name>
  |         <url-pattern>*.jsp</url-pattern>
  |       </web-resource-collection>
  |       <auth-constraint>
  |         <role-name>everyone</role-name>
  |       </auth-constraint>
  |    </security-constraint>
  | 
  |    <login-config>
  |       <auth-method>BASIC</auth-method>
  |       <realm-name>User-Basic-Authentication</realm-name>
  |    </login-config>  
  | 
  |    <security-role>
  |       <description>The role required to access restricted 
content</description>
  |       <role-name>everyone</role-name>
  |    </security-role>
(To force everyone to log on immediately)


jboss-web.xml

<jboss-web>
  |    <security-domain>java:/jaas/User-Basic-Authentication</security-domain>
  | </jboss-web>

jboss.xml

<security-domain>java:/jaas/User-Basic-Authentication</security-domain>

jboss-service.xml

  <mbean code="org.jboss.security.plugins.SecurityConfig"
  |      name="jboss.security:service=SecurityConfig">
  |      <attribute name="LoginConfig">
  |          jboss.security:service=XMLLoginConfig
  |      </attribute>
  |    </mbean>
  |  
  |    <mbean code="org.jboss.security.auth.login.XMLLoginConfig"
  |       name="jboss.security:service=XMLLoginConfig">
  |       <attribute name="ConfigResource">
  |          login-config.xml
  |       </attribute>
  |    </mbean>
  | 
  |    <!-- JAAS security manager and realm mapping -->
  |    <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
  |       name="jboss.security:service=JaasSecurityManager">
  |       <attribute name="SecurityManagerClassName">
  |          org.jboss.security.plugins.JaasSecurityManager
  |       </attribute>
  |    </mbean>
  | 
  |    <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
  |       name="jboss.security:service=JaasSecurityDomain, 
domain=User-Basic-Authentication">
  |       <constructor>
  |          <arg type="java.lang.String" value="User-Basic-Authentication" />
  |       </constructor>
  |    </mbean>


jboss-service.xml (in the -tomcat41.sar\meta-inf subdirectory)

  <!-- A HTTP/1.1 Connector on port 8082 -->
  |   <Connector
  |      className="org.apache.coyote.tomcat4.CoyoteConnector"
  |      port="8082" minProcessors="5" maxProcessors="100"
  |      redirectPort="8443" enableLookups="true"
  |      acceptCount="10" debug="0"
  |      securityDomainName="java:/jaas/User-Basic-Authentication"
  |      connectionTimeout="20000" useURIValidationHack="false"/> 

login-conf.xml

    <application-policy name = "User-Basic-Authentication">
  |        <authentication>
  |           <login-module
  |              code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
  |              flag = "required" />
  |        </authentication>
  |     </application-policy>


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

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


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to