Unable to access PC share when security = domain, works with security = server

Eric Boehm boehm at nortelnetworks.com
Thu Mar 23 19:17:22 GMT 2000


I don't understand what is happening with accessing my PC's share with
smbclient. 

If my smb.conf contains

    workgroup = AMERICASE
    security  = server
    password server = NRTPDE10, NRTPDE11, NRTPDE12

I can run 

    smbclient '//prtpd2d6/Views' -U boehm 

and it connects just fine

If I have

   workgroup = PCNTRTP
   security  = domain
   password server = *

and I run

    smbclient '//prtpd2d6/Views' -U boehm 

I get

    session setup failed: ERRDOS - ERRnoaccess (Access denied.)

AMERICASE is a NT domain set up for user accounts. PCNTRTP is a domain set up
for machine accounts. From the output of debugging level 10, it looks like it
is trying to authenticate me against PCNTRTP.

If I use 

    smbclient '//prtpd2d6/Views' -U AMERICASE\boehm 

I still get 

    session setup failed: ERRDOS - ERRnoaccess (Access denied.)

(debugging output attached).

What am I doing wrong or what I am not understanding correctly?

-- 
Eric M. Boehm                               boehm at nortelnetworks.com
-------------- next part --------------
/usr/local/samba/bin/smbclient //prtpd2d6/Views -U AMERICASE\BOEHM
pm_process() returned Yes
lp_servicenumber: couldn't find homes
codepage_initialise: client code page = 437
load_client_codepage: loading codepage 437.
Adding chars 0x87 0x80 (l->u = True) (u->l = True)
Adding chars 0x81 0x9a (l->u = True) (u->l = True)
Adding chars 0x82 0x90 (l->u = True) (u->l = True)
Adding chars 0x83 0x41 (l->u = True) (u->l = False)
Adding chars 0x84 0x8e (l->u = True) (u->l = True)
Adding chars 0x85 0x41 (l->u = True) (u->l = False)
Adding chars 0x86 0x8f (l->u = True) (u->l = True)
Adding chars 0x88 0x45 (l->u = True) (u->l = False)
Adding chars 0x89 0x45 (l->u = True) (u->l = False)
Adding chars 0x8a 0x45 (l->u = True) (u->l = False)
Adding chars 0x8b 0x49 (l->u = True) (u->l = False)
Adding chars 0x8c 0x49 (l->u = True) (u->l = False)
Adding chars 0x8d 0x49 (l->u = True) (u->l = False)
Adding chars 0x91 0x92 (l->u = True) (u->l = True)
Adding chars 0x93 0x4f (l->u = True) (u->l = False)
Adding chars 0x94 0x99 (l->u = True) (u->l = True)
Adding chars 0x95 0x4f (l->u = True) (u->l = False)
Adding chars 0x96 0x55 (l->u = True) (u->l = False)
Adding chars 0x97 0x55 (l->u = True) (u->l = False)
Adding chars 0x9b 0x0 (l->u = False) (u->l = False)
Adding chars 0x9c 0x0 (l->u = False) (u->l = False)
Adding chars 0x9d 0x0 (l->u = False) (u->l = False)
Adding chars 0xa0 0x41 (l->u = True) (u->l = False)
Adding chars 0xa1 0x49 (l->u = True) (u->l = False)
Adding chars 0xa2 0x4f (l->u = True) (u->l = False)
Adding chars 0xa3 0x55 (l->u = True) (u->l = False)
Adding chars 0xa4 0xa5 (l->u = True) (u->l = True)
Adding chars 0xa8 0x0 (l->u = False) (u->l = False)
Adding chars 0xad 0x0 (l->u = False) (u->l = False)
Adding chars 0xae 0x0 (l->u = False) (u->l = False)
Adding chars 0xaf 0x0 (l->u = False) (u->l = False)
Adding chars 0xe0 0x0 (l->u = False) (u->l = False)
Adding chars 0xe1 0x0 (l->u = False) (u->l = False)
Adding chars 0xe2 0x0 (l->u = False) (u->l = False)
Adding chars 0xe3 0x0 (l->u = False) (u->l = False)
Adding chars 0xe4 0x0 (l->u = False) (u->l = False)
Adding chars 0xe5 0x0 (l->u = False) (u->l = False)
Adding chars 0xe6 0x0 (l->u = False) (u->l = False)
Adding chars 0xe7 0x0 (l->u = False) (u->l = False)
Adding chars 0xe8 0x0 (l->u = False) (u->l = False)
Adding chars 0xe9 0x0 (l->u = False) (u->l = False)
Adding chars 0xea 0x0 (l->u = False) (u->l = False)
Adding chars 0xeb 0x0 (l->u = False) (u->l = False)
Adding chars 0xec 0x0 (l->u = False) (u->l = False)
Adding chars 0xed 0x0 (l->u = False) (u->l = False)
Adding chars 0xee 0x0 (l->u = False) (u->l = False)
Adding chars 0xef 0x0 (l->u = False) (u->l = False)
added interface ip=47.111.69.171 bcast=47.111.79.255 nmask=255.255.240.0
added interface ip=47.140.7.148 bcast=47.140.15.255 nmask=255.255.240.0
Client started (version 2.0.6).
resolve_lmhosts: Attempting lmhosts lookup for name prtpd2d6<0x20>
startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was No such file or directory
resolve_hosts: Attempting host lookup for name prtpd2d6<0x20>
Connecting to 47.192.10.18 at port 139
write_socket(4,76)
write_socket(4,76) wrote 76
Sent session request
got smb length of 0
size=0
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
 session request ok
write_socket(4,168)
write_socket(4,168) wrote 168
got smb length of 93
size=93
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=20223
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
smb_vwv[1]=12803 (0x3203)
smb_vwv[2]=256 (0x100)
smb_vwv[3]=1024 (0x400)
smb_vwv[4]=17 (0x11)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=256 (0x100)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=64768 (0xFD00)
smb_vwv[10]=67 (0x43)
smb_vwv[11]=53248 (0xD000)
smb_vwv[12]=57150 (0xDF3E)
smb_vwv[13]=64591 (0xFC4F)
smb_vwv[14]=49044 (0xBF94)
smb_vwv[15]=11265 (0x2C01)
smb_vwv[16]=2049 (0x801)
smb_bcc=24
[000] 0C 86 81 CB A4 9E 6B FD  50 00 43 00 4E 00 54 00  ......k. P.C.N.T.
[010] 52 00 54 00 50 00 00 00                           R.T.P... 
size=93
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=20223
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
smb_vwv[1]=12803 (0x3203)
smb_vwv[2]=256 (0x100)
smb_vwv[3]=1024 (0x400)
smb_vwv[4]=17 (0x11)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=256 (0x100)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=64768 (0xFD00)
smb_vwv[10]=67 (0x43)
smb_vwv[11]=53248 (0xD000)
smb_vwv[12]=57150 (0xDF3E)
smb_vwv[13]=64591 (0xFC4F)
smb_vwv[14]=49044 (0xBF94)
smb_vwv[15]=11265 (0x2C01)
smb_vwv[16]=2049 (0x801)
smb_bcc=24
[000] 0C 86 81 CB A4 9E 6B FD  50 00 43 00 4E 00 54 00  ......k. P.C.N.T.
[010] 52 00 54 00 50 00 00 00                           R.T.P... 
Password: 
write_socket(4,147)
write_socket(4,147) wrote 147
got smb length of 35
size=35
smb_com=0x73
smb_rcls=1
smb_reh=0
smb_err=5
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=20223
smb_uid=0
smb_mid=1
smt_wct=0
smb_bcc=0
size=35
smb_com=0x73
smb_rcls=1
smb_reh=0
smb_err=5
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=20223
smb_uid=0
smb_mid=1
smt_wct=0
smb_bcc=0
session setup failed: ERRDOS - ERRnoaccess (Access denied.)


More information about the samba-ntdom mailing list