[jcifs] Problem with DFS
Rolf Breuning
Rolf.Breuning at t-online.de
Wed Apr 14 09:13:46 GMT 2004
Hello,
I just started using jcifs 0.8-2 for access to a Win2000 / WinXP based
company network.
I discovered problems when accessing files or directories on DFS drives.
Please find attached a small class which allows to reproduce the problem
using the length() method for a file. However, all methods, e.g.
listFiles() etc. seem to suffer from this problem.
The attached class shows, that the DFS information is in principle
correctly obtained. If I extract the DFS information I can easily build
a new SmbFile which allows the access. However the sendTransaction()
method seems not to be able to apply the DFS information correctely.
Special things:
- I do not use the global properties, the authentication is added to the
smb:// string
- The resolved DFS reference points to the same server as originally
accessed, but uses another share name:
//server1/share1/dir1/dir2/ -> //server1/share2/
Kind regards
Rolf
More information about the jcifs
mailing list