[jcifs] CIFS oddities: Novell/jCIFS/smbclient

Christopher R. Hertel crh at ubiqx.mn.org
Fri Dec 27 09:52:53 EST 2002


Jim

I'm doing some testing of jCIFS 0.7.0b11 against a Novell CIFS server and
I've found a few oddities.  Chief among them is that jCIFS has no problem
at all getting a good NetShareEnum response from the Novell server, but
Samba's smbclient does.  The response from the Novell server is filled
with nul bytes.  The smbclient tool is in wide use, and doesn't seem to
have a problem (as far as I know) against any other server.  If I get
time, I will look into this some more.  My guess is that there's a
subtlety here that is making the two products incompatible.

Another oddity is that I can use the jCIFS 'List' utility to list the 
shares, and list the contents of a file or subdirectory, but I cannot list 
the root of the share:

$ java List smb://domain\;crh:p%40ssw0rd@server/
 IPC$ ARCHIVES SHARED USERS
4 files in 342ms

$ java List smb://domain\;crh:p%40ssw0rd@server/USERS
Exception in thread "main" jcifs.smb.SmbException: File not found
        at jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:630)
        at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:78)
        at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:66)
        at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:443)
        at jcifs.smb.SmbFile.list(SmbFile.java:1129)
        at jcifs.smb.SmbFile.list(SmbFile.java:1117)
        at List.main(List.java:31)

$ java List smb://domain\;crh:p%40ssw0rd@server/USERS/CRH
 Created_on_MAC foo.txt Novell_NetShareEnum.cap.gz resource.frk
4 files in 376ms


It would be nice to be able to work out these issues, to ensure that the
Novell CIFS server is compatible with as many clients as possible.  I have 
some captures.  I just haven't had time to look at them yet.

Chris -)-----

-- 
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org



More information about the jcifs mailing list