I've done some stuff on it. Let me show you my source code. Here is the Login.jsp :
| <form action="j_security_check" method="post"> | <table border="0"> | <tr> | <td>Login: <input type="text" name="j_username" class="txt" /></td> | </tr> | <tr> | <td>Password: <input type="password" name="j_password" class="txt" /></td> | </tr> | <tr> | <td align="center"><html:submit /></td> | </tr> | </table> | </form> | Here is my web.xml : | <security-constraint> | <web-resource-collection> | <web-resource-name>Client</web-resource-name> | <description>Security access default</description> | <url-pattern>/jsp/Client/*</url-pattern> | <http-method>GET</http-method> | <http-method>POST</http-method> | </web-resource-collection> | <auth-constraint> | <role-name>client</role-name> | </auth-constraint> | </security-constraint> | | | <security-constraint> | <web-resource-collection> | <web-resource-name>Administrator</web-resource-name> | <description>Security access for Admin</description> | <url-pattern>/jsp/Genre/addGenre.jsp</url-pattern> | <http-method>GET</http-method> | <http-method>POST</http-method> | </web-resource-collection> | <auth-constraint> | <role-name>admin</role-name> | </auth-constraint> | </security-constraint> | | <login-config> | <auth-method>FORM</auth-method> | <realm-name>Mp3sil secure access</realm-name> | <form-login-config> | <form-login-page>/jsp/Login/Login.jsp</form-login-page> | <form-error-page>/jsp/Login/LoginError.jsp</form-error-page> | </form-login-config> | </login-config> | | <security-role> | <role-name>client</role-name> | </security-role> | <security-role> | <role-name>admin</role-name> | </security-role> | Here is my jboss-web.xml : | <jboss-web> | <security-domain>java:/jaas/login</security-domain> | </jboss-web> | But now, I don't understand how to make the LoginModule (I guess i've to do it). Could you explain me how to do all this stuff? Thanx, Cedric View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921216#3921216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921216 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
