[jcifs] Ntlm authentication don't works
Emmanuel Potvin
emmanuel_potvin at hotmail.com
Wed Aug 24 18:41:30 GMT 2005
Hi,
I'm developing a java web application, and I have the restriction of using
Active directory SSO. The client need to not enter login password when they
open the url. With jCifs I'm supposed to make what I want, but I'm not able
to make it works correctly.
My AD server is at the address 192.168.0.179, the computer is named
winmachine, the domain is CPA-ERP.
so I added this filter in my web.xml application :
<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>CPA-ERP</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.wins</param-name>
<param-value>192.168.0.179</param-value>
</init-param>
<init-param>
<param-name>jcifs.util.loglevel</param-name>
<param-value>3</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>NtlmHttpFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
I'm using jboss, so I put the jcifs-1.2.3.jar in the serveur lib directory.
When I run the application (by trying the NtlmHttpAuthExample), I have this
in my log :
14:38:45,095 INFO [STDOUT] Default credentials
(jcifs.smb.client.username/password) not specified. SMB signing may not work
propertly. Skipping DC interrogation.
and a 404 error in explorer. Is there some configuration to do on the wins
server?
Emmanuel
More information about the jcifs
mailing list