[jcifs] SmbFile.exist: subnet, connection to domain controller

Jean-Marc Autexier jmau2002 at web.de
Tue Dec 8 23:31:15 MST 2009


Am 08.12.2009 23:33, schrieb Michael B Allen:
> On Tue, Dec 8, 2009 at 2:01 PM, Jean-Marc Autexier <jmau2002 at web.de> wrote:
>   
>> Hi,
>>
>> I'm connecting to a server in another network to check a file on a cifs
>> share (using jcifs-1.3.12).
>>
>> I more or less just use SmbFile with
>> "smb://DOMAIN;USER:PASSWORD@MYSERVER/share/myFile" and call exists();
>>
>> ...
>>     
> Hi Jean-Marc,
>
> That communication with the DC is for DFS. If you use a fully
> qualified DNS hostname I think JCIFS will not try to do the DFS root
> referrals. You should always use a fully qualified DNS hostname anyway
> to avoid common name service problems. But I'm not sure if that alone
> will stop JCIFS from trying to do DFS. If this is the case, you can
> set jcifs.smb.client.dfs.disabled = true in which case JCIFS should
> not try to perform DFS root referrals.
>
>   
This sounds logical, but why is DFS done for the domain name?
I'm not sure the full domain name will help as the domain is unknown in
the network in which my application is running.
I will try later to disable dfs and update you.

Tx,
Jean-Marc


More information about the jCIFS mailing list