[jcifs] Configuring jCIFS with SunOne WebServer
Steven Dunn
stevendunn at btconnect.com
Tue Jun 29 16:54:27 GMT 2004
Hi All,
I've configured jCIFS to authenticate connections for a web application running
on Apache Tomcat 4.1.18-LE-jdk14. All clients connecting to the web application
first access a page on the SunOne webserver which then needs them to
authenticate against a Win2K domain/workgroup and then redirect the user to the
webapp uri on TomCat.
I've had mixed results with this configuration. In one environment it works and
in another It doesn't in the environment where it works. I'm using a workgroup
in the environment where it doesn't work I'm trying to connect to a proper
domain. See config below.
When it works on Sun One I get the following
192.168.0.3 - - [24/Jun/2004:11:30:56 +0100] "GET /images/BabyBoy.gif HTTP/1.1"
304 -
When it doesn't work on Sun One I get the following in the Sun One Access Log
192.168.0.3 - - [24/Jun/2004:11:39:26 +0100] "GET /sam/myprofile HTTP/1.1" 401 -
My filter looks like the example below
<filter>
<filter-name>NtlmHttpFilter</filter-name>
<filter-class>jcifs.http.NtlmHttpFilter</filter-class>
<init-param>
<param-name>jcifs.http.domainController</param-name>
<param-value>192.168.0.1</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.domain</param-name>
<param-value>TESTDOMAIN</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.hostname</param-name>
<param-value>SHAKA</param-value>
</init-param>
<init-param>
<param-name>jcifs.http.enableNegotiate</param-name>
<param-value>false</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>NtlmHttpFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Has anyone had the same problem on Sun One and what is the best configuration
for the Sun One platform to get authentication to work correctly all the time
Regards
Steven
More information about the jcifs
mailing list