Machine Account is Inaccessible (1.9.19-prealpha)

Gerald Carter cartegw at Eng.Auburn.EDU
Wed Apr 22 13:47:00 GMT 1998


Andrew Perrin - Demography wrote:
> 
> I'm consistently getting "The machine account does not exist or is
> inaccessible" errors when trying to join the domain.  There is a 
> machine password line in ~samba/private; it's for KITAGAWA$ (the 
> client's name is kitagawa), password kitagawa, and it's in /etc/passwd 
> as well.
> 
> Domain name is SANDBOX
> Server is Netbios Name SHOVEL, DNS name BOSERUP
> Client is Netbios & DNS name KITAGAWA
> 

I think this is the problem.  In the three files 

	source/lib/rpc/server/srv_wkssvc.c:create_wks_info_100()
	source/lib/rpc/server/srv_srvsvc.c:srv_reply_net_srv_get_info()
	source/lib/rpc/server/srv_netlog.c:api_net_sam_logon()

There is a call which sets the name returned to be the DNS name.  Since
the DNS name and NetBIOS name are different, this breaks things.  I my
case, I was running a second samba server acting as the PDC.  The login
script would not run because it was trying to get a reponse from the
server on the primary interface.

You can either try changing the NetBIOS name to the DNS name.  Or
comment out the call to get_myname(myname, NULL) in the 3 functions
listed above.  Since myname is a global variable that should already
have the NetBIOS name in it, commenting out these calls should be of no
consequence.  In fact, they probably should not be there at all unless
the myname string is empty.

This has been reported to samba bugs.

[snip]
api_rpc_command: api_srvsvc_rpc op 0x15 - api_rpc_command:
SRV_NET_SRV_GET_INFO
000018 srv_io_q_net_srv_get_info 
    fcd10 ptr_srv_name  : 0102f194
    00001c smb_io_unistr2 
        fcd10 uni_max_len: 00000009
        fcd10 undoc      : 00000000
        fcd10 uni_str_len: 00000009
        fcd10 buffer     : .\.\.S.H.O.V.E.L..
    fcd10 switch_value  : 00000065
srv_net_srv_get_info: 864
make_srv_info_101
struni2: 62 6f 73 65 72 75 70 
struni2: 53 61 6d 62 61 20 31 2e 39 2e 31 39 2d 70 72 65 61 6c 70 68 61 
make_srv_r_net_srv_get_info
000000 srv_io_r_net_srv_get_info 
    000000 srv_io_info_ctr ctr
        fd5d0 switch_value: 00000065
        fd5d0 ptr_srv_ctr : 00000001
        000008 srv_io_info_101 sv101
            fd5d0 platform_id : 000001f4
            fd5d0 ptr_name    : 00000001
            fd5d0 ver_major   : 00000005
            fd5d0 ver_minor   : 00000004
            fd5d0 srv_type    : 0004100b
            fd5d0 ptr_comment : 00000001
            000020 smb_io_unistr2 uni_name    
                fd5d0 uni_max_len: 00000008
                fd5d0 undoc      : 00000000
                fd5d0 uni_str_len: 00000008
                fd5d0 buffer     : .b.o.s.e.r.u.p..
                                   ^^^^^^^^^^^^^^^
            00003c smb_io_unistr2 uni_comment 
                fd5d0 uni_max_len: 00000016
                fd5d0 undoc      : 00000000
                fd5d0 uni_str_len: 00000016
                fd5d0 buffer     : .S.a.m.b.a.
.1...9...1.9.-.p.r.e.a.l.p.h.a..
    fd5d0 status      : 00000000
[snip]


Let me know if this fixes things.
j-
________________________________________________________________________
                            Gerald ( Jerry ) Carter	
Engineering Network Services                           Auburn University 
jerry at eng.auburn.edu             http://www.eng.auburn.edu/users/cartegw

       "...a hundred billion castaways looking for a home."
                                  - Sting "Message in a Bottle" ( 1979 )


More information about the samba-ntdom mailing list