[jcifs] Need help with jcifs setup
Sabyasachi Mukherjee
sabyasachi.mukherjee at ascindia.com
Mon May 29 12:50:19 GMT 2006
Hi,
I have tried all these settings for the application on Tomcat but I am
still getting the same result. How can I trace what the NTLM filter is
doing ? The filter does seem to work as I can access the servlet if I
remove the filter from the web.xml file.
Thanks,
Sabyasachi.
-----Original Message-----
From: Yannick [mailto:yannick at smellyfrog.com]
Sent: Monday, May 29, 2006 4:52 PM
To: Sabyasachi Mukherjee
Subject: Re: [jcifs] Need help with jcifs setup
When I was testing JCIFS I was using my own domain account. Then I got
an admin to create an account for it. As far as I know, it only needs to
be a valid domain user. I don't think it needs specific privileges. Are
you running tomcat as a service? If so it might be handy to run it from
the command prompt to see what's going on.
I'm sending you my own (Edited) settings. Please note that the class
called is a descendant of the supplied Filter class. I needed to alter
the filters behaviour so I created my own class.
In the jcifs.smb.client.laddr property, I specify the ip of the machine
on which Tomcat is running.
<filter>
<filter-name>NtlmHttpFilter</filter-name>
<filter-class>jcifs.http.NtlmHttpFilterForIViewXT</filter-class>
<init-param>
<param-name>jcifs.smb.client.domain</param-name>
<param-value>MYDOM</param-value>
</init-param>
<init-param>
<param-name>jcifs.resolveOrder</param-name>
<param-value>LMHOSTS,WINS,DNS</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.wins</param-name>
<param-value>172.24.25.40</param-value>
</init-param>
<init-param>
<param-name>jcifs.util.loglevel</param-name>
<param-value>9</param-value>
</init-param>
<init-param>
<param-name>jcifs.http.enableBasic</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>jcifs.http.insecureBasic</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.laddr</param-name>
<param-value>172.24.25.245</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.username</param-name>
<param-value>preAuthAccount</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.password</param-name>
<param-value>preAuthPassword</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.responseTimeout</param-name>
<param-value>15000</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.soTimeout</param-name>
<param-value>35000</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.retryCount</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.retryTimeout</param-name>
<param-value>5000</param-value>
</init-param>
</filter>
Sabyasachi Mukherjee wrote:
>Hi,
>
>I have made the changes. Changed log-level to 9 and added a user and
>password in the init-params. I am still not getting any messages in the
>log file. Does this user need to have any special privileges ?
>
>Thanks,
>Sabyasachi.
>
>
>
>
>>Hi,
>>
>>Change the log level from 1 to 9. That should give you a lot more
>>information. The logs should show on catalina log file.
>>Your problem is that you might need pre-anthentication.
>>
>>
>
>
>
>>Yannick
>>
>>
>
>
>
>>Sabyasachi Mukherjee wrote:
>>
>>
>
>
>
>>*I have setup jcifs on my Tomcat 5.0 server. The setup is on a client
>>machine on a Windows XP network. The web.xml for the application is
>>like this :*
>>
>>
>>
>><filter>
>>
>> <filter-name>NtlmHttpFilter</filter-name>
>>
>> <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
>>
>> <init-param>
>>
>>
>>
>>
><param-name>jcifs.smb.client.domain</param-name>
>
>
>> <param-value>domainname</param-value>
>>
>> </init-param>
>>
>> <init-param>
>>
>> <param-name>jcifs.netbios.wins</param-name>
>>
>> <param-value>192.168.26.13,192.168.26.12</param-value>
>>
>> </init-param>
>>
>> <init-param>
>>
>> <param-name>jcifs.util.loglevel</param-name>
>>
>> <param-value>1</param-value>
>>
>> </init-param>
>>
>></filter>
>>
>>
>>
>><filter-mapping
>>
>> url-pattern='/*'
>>
>> filter-name='NtlmHttpFilter'/>
>>
>>
>>
>>
>>
>>*When I try to access the example serlvet from the same machine, I
>>get a 404 error. I cannot see any logs. Which is the default logging
>>location ? *
>>
>>*Am I missing something ? Any help will be appreciated. *
>>
>>
>>
>
>
>
>
More information about the jcifs
mailing list