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

T.Rademacher at inka-kag.de T.Rademacher at inka-kag.de
Thu Sep 22 11:37:25 GMT 2005


Hey Richard,

I think, this is the trick, because the server logfiles say, that if I
connect with smbclient, the name is used and if the java-prog tries to
connect, just the IP is mentioned.

I tried the property "jcifs.netbios.hostname", but doesn't seem to work. It
still sends just the IP.

Any ideas?

Regards,

Tim
_______________________________________

Tim Rademacher
Internationale Kapitalanlagegesellschaft mbH
Georg-Glock-Str. 14
40474 Düsseldorf
Tel.: 0211-910-2184
e-mail: t.rademacher at inka-kag.de


                                                                           
             Richard Caper                                                 
             <rcaper at gmail.com                                             
             >                                                          An 
             Gesendet von:              "T.Rademacher at inka-kag.de"         
             jcifs-bounces+t.r          <T.Rademacher at inka-kag.de>         
             ademacher=inka-ka                                       Kopie 
             g.de at lists.samba.          jcifs at lists.samba.org              
             org                                                           
                                                                           
             Fax-Deckblatt:                                          Thema 
             INKA                       Re: [jcifs] SmbAuthException:      
             22.09.2005 11:33           Logon failure: user not allowed to 
                                        log    on to this computer.        
              Bitte antworten           [Virus checked]                    
                    an                                                     
               Richard Caper                                               
             <rcaper at gmail.com                                             
                     >                                                     
                                                                           
                                                                           




This would typically be seen if you have a domain policy specifying
the computers from which you are allowed to log in.  By default, jCIFS
presents a random hostname, which would not match whatever is set in
the policy.  Try setting the "jcifs.netbios.hostname" property to the
correct hostname; that should fix it.

On 9/22/05, T.Rademacher at inka-kag.de <T.Rademacher at inka-kag.de> wrote:
>
> Hi,
>
> I'm trying to get a file from a windows share. When I use the unix
command
> line tool smbclient, it's working.
>
> But when I use JCIFS it is not! I get an error:
jcifs.smb.SmbAuthException:
> Logon failure: user not allowed to log on to this computer.
>
> It seems, that I'am not allowed to log in _from_my_computer_, but I am
> allowed regarding to smbclient.
>
> Is it possible, that the JCIFS sends a bad ID (like workstation name or
ip
> address)?
>
> Can you help me?
>
> Regards,
>
> Tim
>
>
>





More information about the jcifs mailing list