[Samba] smbprint'ing problem

Peter Lauda plauda at rx30.com
Thu Oct 6 19:33:26 GMT 2005


Hey Folks,

I've spent several days weeding through list archives and FAQs.

I've been given the task to debug a samba printing issue and have 
really no idea where to start. The version is 3.0.15a and the config in 
question is exactly the same as the previous version we used. I believe that 
was 2.8.x (not sure though)

I guess the problem is that no matter what I've tried the end result is that 
lpr (which then grabs smbprint) gets  NT_STATUS_ACCESS_DENIED when I try to 
print to the windows printer. I can list shares etc on windows using smbclient
but smbprint always fails.

Any advice, tips, or trouble shooting ideas greatly appreciated. Here is 
a -d 9 output from my last attempt.

--p


INFO: Current debug levels:
  all: True/9
  tdb: False/0
  printdrivers: False/0
  lanman: False/0
  smb: False/0
  rpc_parse: False/0
  rpc_srv: False/0
  rpc_cli: False/0
  passdb: False/0
  sam: False/0
  auth: False/0
  winbind: False/0
  vfs: False/0
  idmap: False/0
  quota: False/0
  acls: False/0
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = MYGROUP
doing parameter server string = Samba Server
doing parameter security = user
doing parameter load printers = yes
doing parameter printcap name = /etc/printcap
doing parameter printcap name = lpstat
doing parameter log file = /usr/local/samba/var/log.%m
doing parameter max log size = 50
doing parameter passdb backend = tdbsam
doing parameter socket options = TCP_NODELAY
doing parameter dns proxy = no
pm_process() returned Yes
lp_servicenumber: couldn't find homes
added interface ip=192.168.0.254 bcast=192.168.0.255 nmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="RX30"
Client started (version 3.0.11).
Connecting to 192.168.0.100 at port 445
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 87380
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
 session request ok
write_socket(3,183)
write_socket(3,183) wrote 183
size=178
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=12676
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
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]=  227 (0xE3)
smb_vwv[11]=28800 (0x7080)
smb_vwv[12]=60899 (0xEDE3)
smb_vwv[13]=43954 (0xABB2)
smb_vwv[14]=50634 (0xC5CA)
smb_vwv[15]=61441 (0xF001)
smb_vwv[16]=    0 (0x0)
smb_bcc=109
size=178
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=12676
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
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]=  227 (0xE3)
smb_vwv[11]=28800 (0x7080)
smb_vwv[12]=60899 (0xEDE3)
smb_vwv[13]=43954 (0xABB2)
smb_vwv[14]=50634 (0xC5CA)
smb_vwv[15]=61441 (0xF001)
smb_vwv[16]=    0 (0x0)
smb_bcc=109
Serverzone is 14400
Doing spnego session setup (blob length=109)
got OID=1 2 840 48018 1 2 2
got OID=1 2 840 113554 1 2 2
got OID=1 2 840 113554 1 2 2 3
got OID=1 3 6 1 4 1 311 2 2 10
got principal=shalllaptop$@RX30.COM
write_socket(3,162)
write_socket(3,162) wrote 162
size=354
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=12676
smb_uid=2048
smb_mid=2
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  354 (0x162)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=  237 (0xED)
smb_bcc=311
size=354
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=12676
smb_uid=2048
smb_mid=2
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  354 (0x162)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=  237 (0xED)
smb_bcc=311
Got challenge flags:
Got NTLMSSP neg_flags=0x62890215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_CHAL_TARGET_INFO
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP challenge set by NTLM2
challenge is: 
[000] FA 5F 21 AD F5 A7 40 D1                           ._!... at . 
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
write_socket(3,256)
write_socket(3,256) wrote 256
size=35
smb_com=0x73
smb_rcls=109
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=12676
smb_uid=2048
smb_mid=3
smt_wct=0
smb_bcc=0
size=35
smb_com=0x73
smb_rcls=109
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=12676
smb_uid=2048
smb_mid=3
smt_wct=0
smb_bcc=0
SPNEGO login failed: Logon failure
write_socket(3,92)
write_socket(3,92) wrote 92
size=133
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=12676
smb_uid=2049
smb_mid=4
smt_wct=3
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  133 (0x85)
smb_vwv[ 2]=    0 (0x0)
smb_bcc=92
size=133
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=12676
smb_uid=2049
smb_mid=4
smt_wct=3
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  133 (0x85)
smb_vwv[ 2]=    0 (0x0)
smb_bcc=92
Anonymous login successful
Domain=[RX30.COM] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
 session setup ok
write_socket(3,104)
write_socket(3,104) wrote 104
size=35
smb_com=0x75
smb_rcls=34
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=12676
smb_uid=2049
smb_mid=5
smt_wct=0
smb_bcc=0
tree connect failed: NT_STATUS_ACCESS_DENIED



More information about the samba mailing list