Dashboard > LAMS 2 > ... > Best Practices > How to set up JAAS in LAMS
  LAMS 2 Log In | Sign Up   View a printable version of the current page.  
  How to set up JAAS in LAMS
Added by Dapeng Ni , last edited by Fiona Malikoff on Oct 18, 2005  (view change)
Labels: 
(None)

1.Config jboss-web.xml, the name after /jaas/ must be same with application-policy name in login-config.xml, and it is case-sensitive!!!

2. Config login-config.xml, which locates in ${JBOSS}/server/conf or ${JBOSS}/server/default/conf

3.In authentication.xml

4.So, in mysql-ds.xml, which locate in ${JBOSS}/server/default/ folder, will have such definition for Data source

5.javax.security.auth.spi.LoginModule will implement javax.security.auth.spi.LoginModule interface
6.In login.jsp

7. To share JAAS across multip web application in one host. Adding following line in server.xml for Tomcat container. This file usually locate in ${JBOSS}/server/default/deploy/jbossweb-tomcat55.sar. For more detail please refer to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Single%20Sign%20On

8. For web.xml (simliar for ejb-jar.xml), usually like this:

9. For LAMS system special configuration in web.xml, need add a listener:

Powered by a free Atlassian Confluence Open Source Project License granted to Learning Activity Management System (LAMS). Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators