[jcifs] jcifs.netbios.hostname and authentication

Paul Duncan Paul.Duncan at yolus.com
Thu Mar 16 08:44:10 GMT 2006


Mike, 

> > 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.  So the code
has a bug.  My questions are intended to guage whether I need to fix
this bug or if I can wait for a future release of jCIFS which would not
require the jcifs.netbios.hostname property to be set.  Are there any
plans for jCIFS to be modified so that SmbSession.logon() authenticates
in the situation which I have outlined above without having to set the
property?   SmbSession.logon accepts the hostname as a parameter and one
could argue that the method should encapsulate everything necessary to
authenticate with the specified host.  Do the jCIFS developers regard
the necessity to set the property as a defect?  I am asking for
information only.  Thanks for your help.

Paul Duncan


-------------------------------------------------------------------------------

This message (including any attachments) is confidential and may be privileged. 
If you have received it by mistake please notify the sender by return e-mail 
and delete this message from your system. Any unauthorised use or dissemination
of this message in whole or in part is strictly prohibited. Please note that
e-mails are susceptible to change. Yolus Limited shall not be responsible for
the improper or incomplete transmission of the information contained in this
communication nor for any delay in its receipt or damage to your system. 

Yolus Limited does not guarantee that the integrity of this communication has
been maintained nor that this communication is free of viruses, interceptions 
or interference.             

-------------------------------------------------------------------------------




More information about the jcifs mailing list