[jcifs] Weird behaviour with NTLMHttpFilter

Swapnil Patil swapnil123patil at gmail.com
Wed Dec 31 15:07:18 GMT 2008


Hi,
I am using NTLMHttpFilter.
Server : Tomcat 5.0. On machine 192.168.2.79.
After starting tomcat if test my application from  192.168.5.120.(its
in same domain where my apllication is deployed) NTLM works fine.
After this if I test my application from server itself i.e
192.168.2.79 it ask for user name password to connect 192.168.2.79. !
I can login if click url 3 times !.  vice-versa of this is true i.e.
afteer server restart if strat testing from 192.168.2.79 then I
encounter problem at 192.168.5.120
web.xml is as follows
<filter>
    <filter-name>NtlmHttpFilter</filter-name>
     <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
     <init-param>
          <param-name>jcifs.netbios.wins</param-name>
          <param-value>192.168.5.124,192.168.5.126</param-value>
     </init-param>
     <init-param>
          <param-name>jcifs.smb.client.domain</param-name>
          <param-value>techo</param-value>
     </init-param>
</filter>
<filter-mapping>
   <filter-name>NtlmHttpFilter</filter-name>
   <url-pattern>/index.jsp</url-pattern>
</filter-mapping>

--- index.jsp
I am getting user name from session.getAttribute("NtlmHttpAuth");. And
then puting that user in request. and then I am submiting page to
login.jsp
I am hiting index.jsp to test my application.
I am newbie in NTLM so this may be as per design behaviour.
Does any know about such behavior ?
--
Thanks & Regards
Swapnil Patil.


More information about the jcifs mailing list