I do not get it.  I added   <category name="org.jboss.security">
  |      <priority value="TRACE" class="org.jboss.logging.XLevel"/>
  |    </category>
  | to my log4j.xml as Scott Stark recommended.  The FORM authentication is now 
working as expected.  Below are snippets from the configuration file and login.jsp 
from the working FORM authentication.

login-config.xml    <application-policy name = "client-login">
  |        <authentication>
  |           <login-module code = "org.jboss.security.ClientLoginModule"
  |              flag = "required">
  |           </login-module>
  |           <login-module code = "com.fdsolutions.security.module.LoginModule"
  |              flag = "required">
  |           </login-module>
  |        </authentication>
  |     </application-policy>

jboss-web.xml<jboss-web>
  | 
  |    <security-domain>java:/jaas/client-login</security-domain>
  |    <context-root>/myapp</context-root>
  | 
  |    <!-- Resource Environment References -->
  | 
  |    <!-- Resource references -->
  | 
  |    <!-- EJB References -->
  | 
  | </jboss-web>

web.xml    <security-constraint>
  |         <display-name>Server Configuration Security Constraint</display-name>
  |         <web-resource-collection>
  |             <web-resource-name>Protected Area</web-resource-name>
  |             <url-pattern>*.jsp</url-pattern>
  |             <url-pattern>*.do</url-pattern>
  |         </web-resource-collection>
  |         <auth-constraint>
  |             <role-name>user</role-name>
  |         </auth-constraint>
  |         <user-data-constraint>
  |                     <transport-guarantee>NONE</transport-guarantee>
  |         </user-data-constraint>
  |     </security-constraint>
  |     <login-config>
  |         <auth-method>FORM</auth-method>
  |         <realm-name>FDS</realm-name>
  |         <form-login-config>
  |             <form-login-page>/login.jsp</form-login-page>
  |             <form-error-page>/login-error.html</form-error-page>
  |         </form-login-config>
  |     </login-config>
  |     <security-role>
  |         <description>The role that is required to log in to the 
application</description>
  |         <role-name>user</role-name>
  |     </security-role>

login.jsp<%@ page language="java" isThreadSafe="true" isErrorPage="false" %>
  | 
  | <html locale="true">
  |     <SCRIPT language="JavaScript">
  |             <!-- 
  |             top.location.target = "_top"
  |             if ( window.location.target != "_top" ) {
  |                     top.location.href = window.location.href
  |             }
  |             // -->
  |     </SCRIPT>
  |     <head>
  |             <title>First Degree Solutions, LLC</title>
  |             <link rel=StyleSheet href="myapp.css" type="text/css" media=screen>
  |     </head>
  |     <body>
  |             <h1>Login</h1>
  |             <br/>
  |             <center>
  |                     <form method="POST" action='<%= response.encodeURL( 
"j_security_check" ) %>' >
  |                             <table>
  |                                     <tr>
  |                                             <th>Username:</th>
  |                                             <td><input type="text" 
name="j_username" size="15"/></td>
  |                                     </tr>
  |                                     <tr>
  |                                             <th>Password:</th>
  |                                             <td><input type="password" 
name="j_password" size="15"/></td>
  |                                     </tr>
  |                                     <tr/>
  |                                     <tr>
  |                                             <td colspan="2" align="right">
  |                                                     <input type="submit" 
value="Submit"/>
  |                                             </td>
  |                                     </tr>
  |                             </table>
  |                     </form>
  |             </center>
  |     </body>
  | </html>

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826021#3826021";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826021>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to