Failed to negotiate with a suitable domain controller
Jabran Niaz <[email protected]> Fri, 17 Aug 2012 17:01:49 +0000 (UTC)
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Time to time we are getting following exception in our JVM and once we get this
exception it reoccur and we have to restart the JVM to resolve this issue.
[Servlet Error]-[action]: java.net.UnknownHostException: Failed to negotiate
with a suitable domain controller for amrs
at jcifs.smb.SmbSession.getChallengeForDomain(SmbSession.java:126)
at jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:150)
at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:114)
We are using "jcifs-1.2.7.jar"
In web.xml
<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>amrs</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.wins</param-name>
<param-
value>prefdcs.amrs.win.ml.com,prefdcs.amrs.win.ml.com,prefdcs.amrs.win.ml.com,pr
efdcs.amrs.win.ml.com,prefdcs.amrs.win.ml.com</param-value>
<!--Here same WINS server is repeated 5 times because it will resolve to
different IP each time -->
</init-param>
</filter>
Usage in code for user login
UniAddress mydomaincontroller = UniAddress.getByName("amrs.win.ml.com");
NtlmPasswordAuthentication mycreds = new NtlmPasswordAuthentication(".ml.com",
"username", "password");
SmbSession.logon(mydomaincontroller, mycreds);
This causing outages in our production system. Any help in matter is highly
appreciated.
Thanks in advance
Jabran