<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I'm connecting to a server in another network to check a file on a cifs
share (using <em>jcifs-1.3.12).</em><br>
<br>
I more or less just use SmbFile with
"smb://DOMAIN;USER:PASSWORD@MYSERVER/share/myFile" and call exists();<br>
<br>
This works fine, except that even before connecting to the server
MYSERVER SmbFile (or some other code in jcifs) tries to establish a
connection to the server DOMAIN (this is from observing packets with
wireshark), probably because somewhere it tries to retrieve the domain
controller of the network. This happens also when MYSERVER is an IP
address. <br>
<br>
In local networks this is probably no problem, but here I'm not allowed
to connect to the DC of the other network (DOMAIN), only to the server
MYSERVER. <br>
Because it can't resolve the name of the server DOMAIN it takes few
seconds (~8sec) until it get a timeout, than the smb connection to
MYSERVER is established and everything is ok. So no error, it just
takes way to long to check a file. <br>
<br>
I don't see any reason why packets are send to the DC when yxou just
want to connect to a server. Probably it's just an address resolution
which is done somewhere. <br>
<br>
Does someone has an idea why this happens and if it can be changed?<br>
<br>
Regards,<br>
Jean-Marc<br>
<br>
<pre class="moz-signature" cols="72">-- 
think
think different
think open source</pre>
</body>
</html>