[jcifs] browsing a smaller network using netserverenum2
Christopher R. Hertel
crh at ubiqx.mn.org
Fri Feb 4 23:04:18 GMT 2005
On Fri, Feb 04, 2005 at 05:33:39PM -0500, Michael B Allen wrote:
> On Fri, 4 Feb 2005 16:20:00 -0600
> "Christopher R. Hertel" <crh at ubiqx.mn.org> wrote:
>
> > I am supplying nul credentials in most of the ways you've suggested plus
> > the use of empty strings in my jcifs.prp file. What I'm seeing on the
> > wire is that jCIFS is logging in successfully with anonymous
> > credentials--twice! It then closes the TCP connection. Huh? :)
>
> Then the creds are actually a little different. If they were really the same
> the session would be reused. The first if for IPC$. The second is the creds
> you supplied. The difference could be something as simple as a "" instead of
> null for one of the fields. If you look at NPA it has:
>
> static final NtlmPasswordAuthentication NULL = new
> NtlmPasswordAuthentication( "", "", "" );
>
> So I would think that "smb://;:@/" should work as that would result in an
> NPA that has "", "", and "" for the dom, user, and pass. You would have to
> put in some debugging statements in jcifs.smb.Handler or similar.
There may be a difference in what jCIFS is seeing, based on my input, but
there is no difference between the two requests that I can see on the
wire. (I could be missing something, of course.)
> > I can send along a trace and a log dump. Easy enough to replicate,
>
> Send me the trace.
Attached.
> > Note that I am specifically avoiding giving jCIFS any credentials to use.
> >
> > If I use a .prp file, it has:
> >
> > jcifs.smb.client.domain =
> > jcifs.smb.client.username =
> > jcifs.smb.client.password =
> > jcifs.netbios.baddr = 192.168.101.255
>
> That should work too.
Doesn't. When I hand it "smb://" I still get the exception I reported
earlier.
Chris -)-----
--
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jcifs.Ls.cap
Type: application/octet-stream
Size: 2296 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20050204/93d56b93/jcifs.Ls.obj
More information about the jcifs
mailing list