[jcifs] Authentification failure for localhost
Stéphane BEDIN
Stephane.Bedin at med.ge.com
Thu May 12 11:33:58 GMT 2005
Hello,
I'm trying with with NtlmHttpFilter and tomcat
to authenticate the user with the computer local account.
Here is the filter part my config file:
<filter>
<filter-name>NtlmHttpFilter</filter-name>
<filter-class>jcifs.http.NtlmHttpFilter</filter-class>
<init-param>
<param-name>jcifs.http.domainController</param-name>
<param-value>localhost</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.baddr</param-name>
<param-value>127.0.0.255</param-value>
</init-param>
<init-param>
<param-name>jcifs.util.loglevel</param-name>
<param-value>3</param-value>
</init-param>
</filter>
The problem is when I use localhost as the domainControler, I've the got an
exception:
jcifs.smb.SmbException: Failed to negotiate
jcifs.smb.SmbException: Timeout trying to open socket
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:211)
at jcifs.netbios.NbtSocket.<init>(NbtSocket.java:59)
at jcifs.smb.SmbTransport.run(SmbTransport.java:342)
at java.lang.Thread.run(Thread.java:534)
at jcifs.smb.SmbTransport.start(SmbTransport.java:315)
at jcifs.smb.SmbTransport.negotiate0(SmbTransport.java:865)
at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:941)
at jcifs.smb.SmbSession.getChallenge(SmbSession.java:136)
at jcifs.smb.SmbSession.getChallenge(SmbSession.java:130)
at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:130)
... but the filter works fine when I put real real hostname of the machine.
Any idea to avoid to put the real hostname and so to keep "localhost" ??
Stéphane
More information about the jcifs
mailing list