[jcifs] SmbAuthException: Logon failure: user notallowed to log on to this computer. [Virus checked]

Lars Heete hel at admin.de
Thu Sep 22 18:11:51 GMT 2005


Hallo,

> On Thu, 22 Sep 2005 17:01:31 +0200
> T.Rademacher at inka-kag.de wrote:
>
> > Hey,
> > 
> > is it possible that the NetBIOS nameserver (the WINS Server?) doesn't
> > resolve my workstation? And that this causes the JCIFS-Client not to use
> > the name, but the IP-address? In other words: Does the JCIFS-client
always
> > tries to resolve the name by IP?

> No, WINS doesn't do reverse lookups. It was my understanding that
> the only thing MS servers check when trying to enforce the "only log
> in from computer X" policy was the name provided during NetBIOS
> session establishment. By default this is a partially random name
> like JCIFS22_141_E4 because there could be many Java VM instances
> running on the same machine and we were worried that giving each the
> same name might cause a problem. This name can be changed by setting
> the jcifs.netbios.hostname property. If that doesn't appear to be
> working, make sure you know how to set client properties by reviewing
> the documentation.
Since JCIFS 1.2 uses port 445 per default (smb without NETBIOS), this
does'nt work anymore. I'd suggest to force port 139 if the
jcifs.netbios.hostname property is set (see attached patch).

Regards,
Lars Heete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jcifs-1.2-netbiosname.diff
Type: application/octet-stream
Size: 1569 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20050922/3747357b/jcifs-1.2-netbiosname.obj


More information about the jcifs mailing list