[jcifs] Failed to negotiate with a suitable domain Controller

Tazwell Jeffries taswell.jeffries at perspicuity.co.uk
Tue Aug 23 13:51:30 GMT 2005


Hi,
 
I am hitting the same issue: 'Failed to negotiate with a suitable domain controller'......and according to Mike, I need to set the laddr property so that jcif communicate on the right network interface....... (http://lists.samba.org/archive/jcifs/2005-August/005312.html)
 
 
How would I know what would be the 'right network Interface'? I have two boxes set up in a Load Balancing Cluster:
 
corshwdsapp01
Primary LAN: 10.80.32.64
Cluster Connection: standard address 10.80.32.71, virtual address 10.80.32.73
 
corshwdsapp02
Primary LAN: 10.80.32.65
Cluster Connection: standard address 10.80.32.72, virtual address 10.80.32.73
 
Both machines are setup with the Primary LAN as the primary connection (outbound).
 
What should be the IP address I put in for the jcifs.smb.client.laddr:
 
<init-param>
<param-name>jcifs.smb.client.laddr</param-name>
<param-value>??????????IP?????</param-value>
</init-param>

I am fairly new to Networking - so assistance on this would be appreciated...
 
tx
 
taz

________________________________

From: jcifs-bounces+tazwell.jeffries=perspicuity.co.uk at lists.samba.org on behalf of jcifs-request at lists.samba.org
Sent: Tue 23/08/2005 13:00
To: jcifs at lists.samba.org
Subject: jcifs Digest, Vol 32, Issue 26



Send jcifs mailing list submissions to
        jcifs at lists.samba.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.samba.org/mailman/listinfo/jcifs
or, via email, send a message with subject or body 'help' to
        jcifs-request at lists.samba.org

You can reach the person managing the list at
        jcifs-owner at lists.samba.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of jcifs digest..."


Today's Topics:

   1. Re: Jcifs error (Michael B Allen)
   2. Re: jcifs.http.domainController (Michael B Allen)
   3. Blank Page (Gana)


----------------------------------------------------------------------

Message: 1
Date: Mon, 22 Aug 2005 12:06:47 -0400
From: Michael B Allen <mba2000 at ioplex.com>
Subject: Re: [jcifs] Jcifs error
To: Marcin <marcin.sobotka at domdata.com>
Cc: jcifs at lists.samba.org
Message-ID: <20050822120647.49c55290.mba2000 at ioplex.com>
Content-Type: text/plain; charset=US-ASCII

On Mon, 22 Aug 2005 07:38:45 +0000 (UTC)
Marcin <marcin.sobotka at domdata.com> wrote:

> Hi,
>
> i use jcifs 1.1.11. It works for me.
> I've upgrade to new version 1.2.2 and i've got exception.
> (tested on NtlmHttpAuthExample.java, but errors are still there);
>
> java.net.UnknownHostException: Failed to negotiate with a suitable domain
> controller for XXX
>       jcifs.smb.SmbSession.getChallengeForDomain(SmbSession.java:126)
>       jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:150)
>       jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:114)
>       org.infoweb.servlet.filter.NTLM.doFilter(Unknown Source)
>
> In jcifs 1.1.x it works in 1.2.x no.
> Any ideas?

This was reported by someone else too. The key thing that changed in
1.2 was that jCIFS will try port 445 and then fallback to 139. But
that shouldn't be a problem unless trying port 445 generates an
exception for some reason. So in the last release I added a debugging
statement specifically to print this stacktrace to the log. Set your
jcifs.util.loglevel property to 3 and look at the log. What do you see?

Mike


------------------------------

Message: 2
Date: Mon, 22 Aug 2005 12:09:02 -0400
From: Michael B Allen <mba2000 at ioplex.com>
Subject: Re: [jcifs] jcifs.http.domainController
To: "Pollers, Roel [NCSBE - Non JJ]" <RPOLLERS at NCSBE.JNJ.COM>
Cc: jcifs at lists.samba.org
Message-ID: <20050822120902.4f31d6f5.mba2000 at ioplex.com>
Content-Type: text/plain; charset=US-ASCII

On Mon, 22 Aug 2005 11:55:30 +0200
"Pollers, Roel [NCSBE - Non JJ]" <RPOLLERS at NCSBE.JNJ.COM> wrote:

> Hello,
> 
> Does anyone know if there is a possibility to configure static comain
> controllers (with a backup) per domain ?
> Now for example I have
> 
> jcifs.smb.client.domain=DOMAIN
> jcifs.http.domainController=xx.xx.xx.xx
> 
> But I would like to specify a different domain controller for another domain
> and also a backup domain controller for if one goes down ...
> 
> Any ideas ?

Just *don't* set jcifs.http.domainController and let the client find
DCs using WINS. See the NTLM HTTP docs for details.

Mike


------------------------------

Message: 3
Date: Tue, 23 Aug 2005 00:42:58 +0000 (UTC)
From: Gana <gpathman at gmail.com>
Subject: [jcifs] Blank Page
To: jcifs at lists.samba.org
Message-ID: <loom.20050823T023659-211 at post.gmane.org>
Content-Type: text/plain; charset=us-ascii

Hi, I have a problem with JCIFS and TOMCAT. I have the latest (or close to ) of
both of these. i added the filter tags to the web.xml file and run the
application. However the entire web application is presented as blank pages.
there are no error messages. even if i put garbage for the domain controller
attribute it still displays a blank page.

is this a problem with my web.xml or with JCIFS or with tomcat. The web.xml
file looks like the one below


<web-app>
 <description>Timetables</description>
  <display-name>Timetables</display-name>
<filter>
    <filter-name>NtlmHttpFilter</filter-name>
    <filter-class>jcifs.http.NtlmHttpFilter</filter-class>

    <init-param>
        <param-name>jcifs.http.domainController</param-name>
        <param-value>hello</param-value>
    </init-param>
</filter>

<filter-mapping>
    <filter-name>NtlmHttpFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>

thanks in advance




------------------------------

_______________________________________________
jcifs mailing list
jcifs at lists.samba.org
https://lists.samba.org/mailman/listinfo/jcifs


End of jcifs Digest, Vol 32, Issue 26
*************************************


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 10994 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20050823/34d1e279/attachment.bin


More information about the jcifs mailing list