2 Replies Latest reply on Mar 23, 2009 10:32 AM by egiva

    IP on LoginModule

    egiva

      Old issue, but still I can't find good solution how to get client IP in custom login module. I have found two suggestions:


      - get thread name and parse from it IP - weird (maybe it is right way working with JBoss?), but easy to implement
      - implement client&server side interceptors, which should deliver client IP to server - seems to be more correct approach, however I can't find sample how such interceptors should be implemented? Another question which bother me, how will client know about his IP? There could be sever network configurations on client and how it will determine which one shall be used by OS while connecting to server?


      Maybe with JBoss 5.0 there are some changes on this issue?


        • 1. Re: IP on LoginModule
          egiva

          Thread name parsing is not a solution - name contains IP on which was started server. Hence left only delivering IP by the client.

          • 2. Re: IP on LoginModule
            egiva

             

            "Egidijus" wrote:
            Thread name parsing is not a solution - name contains IP on which was started server. Hence left only delivering IP by the client.


            I was confused by loging from different client type. Indeed, thread name contains IP, but just wonder, if such way is propagated to get IP from the thread name on JBoss?