5 Replies Latest reply on May 11, 2006 10:26 PM by Barry Sheward

    JBAS-1468: Add support for IP address reporting inside a Log

    Ricardo Arguello Newbie

      What would be the best approach to resolve [JBAS-1468]:

      Add support for IP address reporting inside a Login Module
      http://jira.jboss.com/jira/browse/JBAS-1468

      I initially commited some code to obtain the IP address from the client using a Tomcat Valve. Since there was too much cpupling between the Valve and JBossSecurityMgrRealm, the code was rolled back.

      Another possible implementaion could be creating a new Realm that expects the IPAddressValve to be declared in the web application. Since it's another Realm, not the default one (JBossSecurityMgrRealm), web apps should declare its use (using a context.xml file).

      Any thoughts?