[jboss-user] [Security & JAAS/JBoss] - Client IP in LoginModule

prateek_n do-not-reply at jboss.com
Mon Jul 14 08:19:26 EDT 2008


I have the same login-module for ejb/web layer. 
I want to retrieve the clientIP in the login module. 

Is there anyway to do it ? 
I used the PolicyContext to retrieve it when the request type is http. 

Object request = PolicyContext.getContext("javax.servlet.http.HttpServletRequest");
remoteIP = ((javax.servlet.http.HttpServletRequest)request)
           .getRemoteHost();
      
Is there anyway to get it when the call is for a ejb ?

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

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



More information about the jboss-user mailing list