[jcifs] DFS and NetworkExplorer

Thomas Bley thomas.bley at simple-groupware.de
Wed Jun 28 17:43:51 GMT 2006


Looking into the code, I made this change in SmbFile.java:

    String getDfsUncPath0() throws SmbException {
        if( dfsReferral == null ) {
            return null;
        unc = dfsReferral.nodepath + unc.substring( 
dfsReferral.path.length() );
        return "".equals( unc ) ? "\\" : unc;
        // tb
        // not working when calling listFiles() a second time:
        // original jCIFS 1.2.9:
        // String dunc = dfsReferral.nodepath + unc.substring( 
dfsReferral.path.length() );
        // return "".equals( dunc ) ? "\\" : dunc;

Maybe the original is causing "unknown host" ?


Michael B Allen wrote:
> On Wed, 28 Jun 2006 17:11:51 +0100
> "Mike Streeton" <mike.streeton at ardentia.co.uk> wrote:
>> Does Network Explorer work with windows DFS  file systems, we are trying
>> to access one, but keep getting unknown host, what was confusing us was
>> the virtual dfs server is the same name as the domain. So it now appears
>> to be accessing the right virtual machine, but not allowing access, any
>> ideas?
> We have seen problems with DFS in general. Traditionally DFS works by
> checking a flag when connecting to a drive and then based on that query
> the server for a referral. But there seems to be a mode of operation where
> Windows clients obtain information about DFS through other communications
> channels. It looks like smbclient deals with this problem by simply
> performing the referral before even trying to connect to drives. Try
> smbclient to verify that it's just a protocol error.
> Mike

More information about the jcifs mailing list