Patrick Spinler
1998-Oct-20 17:41 UTC
SMBClient authentication failing, always connecting as "Guest"
Hi: I'm running Samba 1.9.18p10 on a RedHat 5.1 linux with kernel 2.1.124. My compile options were: -DLINUX -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES -DNO_ASMSIGNALH -DGLIBC2 (incidently, I had to edit includes.h somewhat to get stuff to compile under this config. There were several definition conflicts and missing defs.) Whenever I make a smbclient connection to our nt servers, my username always reports as "guest", no matter which username or password I provide. Eg: $ smbclient //rchsrv07/ClinTrls -U pjs11 -W RCH Added interface ip=129.176.63.130 bcast=129.176.63.255 nmask=255.255.255.0 Server time is Tue Oct 20 12:25:26 1998 Timezone is UTC-5.0 Password: Domain=[RCH] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] connected as guest security=user On the other hand, SMBD and NMBD appear to serve my devices without any problems. I routinely mount shares served from my workstation on other NT boxes here. Can anyone point me in the correct direction ? Some further information, including a "-d100" output, follows. Thanks, -- Pat --- cut here --- $ smbclient -L rchsrv07 -U pjs11 -W RCH Added interface ip=129.176.63.130 bcast=129.176.63.255 nmask=255.255.255.0 Server time is Tue Oct 20 12:16:47 1998 Timezone is UTC-5.0 Domain=[RCH] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] connected as guest security=user Server=[RCHSRV07] User=[] Workgroup=[RCH] Domain=[] ... $ smbclient -h Usage: smbclient service <password> [-p port] [-d debuglevel] [-l log] Version 1.9.18p10 $ cat /proc/version Linux version 2.1.124 (root@r0055620.mayo.edu) (gcc version 2.7.2.3) #2 SMP Tue Oct 6 11:11:54 CDT 1998 $ smbclient //rchsrv07/ClinTrls -U pjs11 -W RCH -d100 1998/10/20 12:31:06 client started (version 1.9.18p10) Initialising global parameters params.c:pm_process() - Processing configuration file "/etc/smb.conf" Processing section "[global]" doing parameter workgroup = MYGROUP doing parameter server string = Samba Server doing parameter printcap name = /etc/printcap doing parameter load printers = yes doing parameter log file = /var/log/samba/log.%m doing parameter max log size = 50 doing parameter security = user doing parameter socket options = TCP_NODELAY doing parameter dns proxy = no pm_process() returned Yes lp_servicenumber: couldn't find homes lp_servicenumber: couldn't find printers lp_servicenumber: couldn't find printers adding IPC service codepage_initialise: client code page = 850 load_client_codepage: loading codepage 850. Adding chars 0x85 0xb7 (l->u = True) (u->l = True) Adding chars 0xa0 0xb5 (l->u = True) (u->l = True) Adding chars 0x83 0xb6 (l->u = True) (u->l = True) Adding chars 0xc6 0xc7 (l->u = True) (u->l = True) Adding chars 0x84 0x8e (l->u = True) (u->l = True) Adding chars 0x86 0x8f (l->u = True) (u->l = True) Adding chars 0x91 0x92 (l->u = True) (u->l = True) Adding chars 0x87 0x80 (l->u = True) (u->l = True) Adding chars 0x8a 0xd4 (l->u = True) (u->l = True) Adding chars 0x82 0x90 (l->u = True) (u->l = True) Adding chars 0x88 0xd2 (l->u = True) (u->l = True) Adding chars 0x89 0xd3 (l->u = True) (u->l = True) Adding chars 0x8d 0xde (l->u = True) (u->l = True) Adding chars 0xa1 0xd6 (l->u = True) (u->l = True) Adding chars 0x8c 0xd7 (l->u = True) (u->l = True) Adding chars 0x8b 0xd8 (l->u = True) (u->l = True) Adding chars 0xd0 0xd1 (l->u = True) (u->l = True) Adding chars 0xa4 0xa5 (l->u = True) (u->l = True) Adding chars 0x95 0xe3 (l->u = True) (u->l = True) Adding chars 0xa2 0xe0 (l->u = True) (u->l = True) Adding chars 0x93 0xe2 (l->u = True) (u->l = True) Adding chars 0xe4 0xe5 (l->u = True) (u->l = True) Adding chars 0x94 0x99 (l->u = True) (u->l = True) Adding chars 0x9b 0x9d (l->u = True) (u->l = True) Adding chars 0x97 0xeb (l->u = True) (u->l = True) Adding chars 0xa3 0xe9 (l->u = True) (u->l = True) Adding chars 0x96 0xea (l->u = True) (u->l = True) Adding chars 0x81 0x9a (l->u = True) (u->l = True) Adding chars 0xec 0xed (l->u = True) (u->l = True) Adding chars 0xe7 0xe8 (l->u = True) (u->l = True) Adding chars 0x9c 0x0 (l->u = False) (u->l = False) Netmask for eth0 = 255.255.255.0 Derived broadcast address 129.176.63.255 Added interface ip=129.176.63.130 bcast=129.176.63.255 nmask=255.255.255.0 Opening sockets resolve_name: Attempting lmhosts lookup for name RCHSRV07 resolve_name: Attempting host lookup for name RCHSRV07 Connecting to 129.176.167.70 at port 139 Connected write_socket(3,76) write_socket(3,76) wrote 76 Sent session request got smb length of 0 write_socket(3,168) write_socket(3,168) wrote 168 got smb length of 85 size=85 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=128 smb_flg2=0 smb_tid=0 smb_pid=5617 smb_uid=500 smb_mid=5717 smt_wct=17 smb_vwv[0]=6 (0x6) 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]=20480 (0x5000) smb_vwv[12]=21426 (0x53B2) smb_vwv[13]=20331 (0x4F6B) smb_vwv[14]=48636 (0xBDFC) smb_vwv[15]=11265 (0x2C01) smb_vwv[16]=2049 (0x801) smb_bcc=16 [000] B0 22 45 C7 16 7A 86 5A 52 00 43 00 48 00 00 00 ."E..z.Z R.C.H... max mux 50 max vcs 1 max raw 65536 capabilities 0x43fd Sec mode 12803 max xmt 4356 Got 8 byte crypt key Chose protocol [NT LM 0.12] Server time is Tue Oct 20 12:31:07 1998 Timezone is UTC-5.0 Password: Using encrypted passwords write_socket(3,110) write_socket(3,110) wrote 110 got smb length of 79 size=79 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=1 smb_tid=0 smb_pid=5617 smb_uid=4097 smb_mid=5717 smt_wct=3 smb_vwv[0]=255 (0xFF) smb_vwv[1]=79 (0x4F) smb_vwv[2]=1 (0x1) smb_bcc=38 [000] 57 69 6E 64 6F 77 73 20 4E 54 20 34 2E 30 00 4E Windows NT 4.0.N [010] 54 20 4C 41 4E 20 4D 61 6E 61 67 65 72 20 34 2E T LAN Ma nager 4. [020] 30 00 52 43 48 00 0.RCH. Domain=[RCH] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] Server gave us a UID of 4097. We gave 500 connected as guest security=user write_socket(3,71) write_socket(3,71) wrote 71 got smb length of 49 Connected with cnum=2051 max_xmit=4356 smb: \> -- Patrick Spinler Mayo Foundation Spinler.Patrick@Mayo.EDU 507/284-9485 PGP Fingerprint: 4A53 1590 2917 C698 BAF7 DBC3 344C 6C09 0147 0348 This message does not represent the policies or positions of the Mayo Foundation