[jcifs] Some shares are not reported by jCIFS

Michael B. Allen miallen at eskimo.com
Sat Jan 11 07:16:17 EST 2003

On Fri, 10 Jan 2003 12:11:46 -0800
"Sundari Karra" <sundari at tek-tools.com> wrote:

> Hi all:
> I have reported some time back jCIFS was not reporting all the shares on a
> solaris machine.  We still have the problem and I was wondering if anyone
> has any ideas, here is more information:
> 1) We are trying to get shares from a Solaris server.
> 2) The credentials are verified and a few shares are reported.  An example
> is, of the 2,300 shares only 185 are reported.
> 3) Of the shares that not being reported, very few share names are longer
> than 12 characters.  So I am not sure why others are not being reported,
> most of these share names don't have any special characters etc.
> Please let me know if any other information is needed to understand what is
> going on.

In addition to the 13 character limitation, the NetShareEnum RAP function
that jCIFS uses is also limited to 64K transfers. That is likely
what is limiting the list. Try a Windows98 client. It should exibit
the same problem. If this is indeed the case, this will not be fixed
anytime soon because it requires DCE/RPC which we do not have at all at
this time. Please send me an Ethereal or NetMon trace if would like to
veryify. Do not post packet traces to the list as they will be filtered
or openly on the internet if they contain sensitive information. Just
send it to me directly.

A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and, more important, to tasks that have not
yet been conceived. 

More information about the jcifs mailing list