[jcifs] jcifs.netbios.hostname and authentication
Michael B Allen
mba2000 at ioplex.com
Thu Mar 16 15:02:27 GMT 2006
On Thu, 16 Mar 2006 08:44:10 -0000
"Paul Duncan" <Paul.Duncan at yolus.com> wrote:
> > > Hello,
> > >
> > > I have a Windows Domain with a policy restricting which
> > users can log
> > > on to which workstations. I am using jCIFS 1.2.7 to
> > authenticate with
> > > hosts on this domain. I see that the
> > jcifs.netbios.hostname property
> > > has to be set to the correct hostname before
> > SmbSession.logon(String
> > > hostname, NtlmPasswordAuthentication authenticator) is called. Are
> > > there any plans to modify jCIFS so that SmbSession.logon() works
> > > correctly on such a Windows Domain without having to set the
> > > aforementioned property? Is the requirement to set this property
> > > regarded as a bug in jCIFS? Thanks.
> > Just put it in your properties file or set it in main() and
> > forgettaboutit. Why exactly are you having a problem?
> > Mike
> I agree that setting the property before calling SmbSession.logon()
> ensures that authentiction works. The problem I am having is that I
> have code which uses SmbSession.logon() to authenticate with multiple
> hosts but does not set the jcifs.netbios.hostname property.
The jcifs.netbios.hostname property is the hostname of the initiator
not the target. Read the property description on the Overview page of
the API documentation.
More information about the jcifs