Skip to Content
0
Former Member
May 22, 2005 at 12:21 PM

Problem with NTLM

19 Views

Hi

I want to get user's IP address using the following code:

javax.servlet.ServletRequest myReuest = request.getServletRequest();

String myAddr = myReuest.getRemoteAddr().toString();

This code is working when I am not using NTLM and I write the complete URL path including the port number (for example http://hostname:50000/irj).

When I try to inter to the portal via NTLM configuration (for example http://hostname/irj) the code return the same IP address for all the users (The code returns the default IP address of local host which is 127.0.0.1).

I think that problem is with configuration of IISProxy.XML file. I bring here the content of IISProxy.XML file.

<?xml version="1.0" encoding="utf-8" ?>

<!DOCTYPE ISAPI-config (View Source for full doctype...)>

- <ISAPI-config version="1.6">

<filter name="IisProxy filter" authentication="forward" log-level="1" log-flags="0" debug-flags="0" priority="high" extension-url="/scripts/IisProxy.dll" remote-address="skip" />

<extension name="IisProxy extension" log-level="1" log-flags="0" debug-flags="0" access="filter" />

- <mapping name="IisProxy samples" log-level="0" debug-flags="-1" log-flags="0" keep-alive="true" use-continue="true" close-socket="true" close-socket-delay="1000" thread-count="100" max-socket-age="37">

- <source access="filter">

<protocol>http</protocol>

<prefix>/irj/</prefix>

</source>

- <source access="filter">

<protocol>http</protocol>

<prefix>/irj</prefix>

<new-prefix>/irj/</new-prefix>

</source>

- <source access="filter">

<protocol>http</protocol>

<prefix>/portal/</prefix>

<new-prefix>/irj/</new-prefix>

</source>

- <source access="filter">

<protocol>http</protocol>

<prefix>/logon/</prefix>

</source>

- <source access="filter">

<protocol>http</protocol>

<prefix>/webdynpro/</prefix>

</source>

- <target>

<protocol>http</protocol>

<host>localhost</host>

<port>50000</port>

</target>

<compress-types min-size="1024">text/html, text/plain</compress-types>

</mapping>

</ISAPI-config>

Could you please help me to solve this issue?

Thanks.