Accessing shares on HP X9000 using jCIFS - SOLVED

Pontus Ullgren <[email protected]>
Newsgroups gmane.network.samba.java
Message-ID <CABe1WL-iexfR90c0z2Ua0t+=6LVET0evRvWQt5u3m6j90Sd4kQ@mail.gmail.com>
Hello list,

This email started out as a plea for help but as I was investigating
the issue, to compose a good question, I found the solution.
Since I could not find any solution via google and since I already
started the email I thought I post it anyway.

Anyway it started when I found my self trying to use jCIFS (v1.3.17)
to access shares on a HP X9000.
This network storage system seems to be running a somewhat dated
version of Samba, however I've not been able to determine the exact
version.

First I had problems getting it to accept the credentials disabling
extended security and forcing lmCompability = 0 solved that.

However after that I got the strangest errors.
After I connected I could not list the initial directory.
However if I started with a file listing in the initial directory and
then change directory all subsequent listings work but never in the
directory I initially connected to.

When I ran the command with higher log level and saw a behaviour which
I, in my ignorance, would describe as a race condition of sort.
Disabling command batching solved the problem.

So the configuration that made it work was
"-Djcifs.smb.client.useExtendedSecurity=false
-Djcifs.smb.lmCompatibility=0  -Djcifs.smb.client.useBatching=false"

Hope this helps someone else and thanks for a great library.
// Pontus Ullgren
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.