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

T.Rademacher at inka-kag.de T.Rademacher at inka-kag.de
Fri Sep 23 12:26:00 GMT 2005


Hey,

that did the trick!

I used tcpdump and found out, that smbclient connects to port 139 while my
Java app is using port 445.

Now I tried both: Switching back to version 1.1.11 works as well as using
your patch!

Thank you very much for your help!

Regards,

Tim



                                                                           
             "Lars Heete"                                                  
             <hel at admin.de>                                                
             Gesendet von:                                              An 
             jcifs-bounces+t.r          "'Michael B Allen'"                
             ademacher=inka-ka          <mba2000 at ioplex.com>,              
             g.de at lists.samba.          <T.Rademacher at inka-kag.de>         
             org                                                     Kopie 
                                        jcifs at lists.samba.org              
             Fax-Deckblatt:                                                
             INKA                                                          
             22.09.2005 20:11                                        Thema 
                                        Re: Re: [jcifs] SmbAuthException:  
                                        Logon failure: user notallowed to  
                                        log on to this computer. [Virus    
                                        checked]                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




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




More information about the jcifs mailing list