[Samba] rpcclient: NT_STATUS_LOGON_FAILURE

Daniel daniel.rampanelli at gmail.com
Fri Jul 14 13:39:33 GMT 2006


hi to everyone,

my name is Daniel and I'm currently trying to upload the driver for a
printer in a company's network. The printer in question is a Kyocera
Mita FS-C5016N, but actually that's not my problem.

My problem is that I'm not able to execute RPC calls on my laptop,.
I've successfully added the PostScript driver (with cupsaddsmb) to the
Samba share "print$", but I need to share the propretary/native driver
for the Windows clients. The cupsaddsmb executes also rpcclient, but
not through the network, but locally, and that seems to work.

I can't simply execute no command of rpcclient!

I'm working on a laptop (Windows XP Professional) and I'm connected
through SSH (with putty) to a Linux server (as root). The name/ip of
my laptop is "PC-Daniel"/192.168.100.117 and the username is Daniel.

Here is the output of the command:
<output>
INFO: Current debug levels:
  all: True/10
  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
  locking: False/0
  msdfs: False/0
added interface ip=192.168.100.4 bcast=192.168.100.255 nmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="SERVER04"
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = PANSUR
doing parameter load printers = yes
doing parameter printing = cups
doing parameter printcap name = cups
doing parameter printcap cache time = 750
doing parameter cups options = raw
doing parameter printer admin = @ntadmin, root, administrator
WARNING: The "printer admin" option is deprecated
doing parameter username map = /etc/samba/smbusers
doing parameter map to guest = Bad User
doing parameter logon path = \\%L\profiles\.msprofile
doing parameter logon home = \\%L\%U\.9xprofile
doing parameter logon drive = P:
doing parameter passdb backend = smbpasswd
doing parameter domain logons = no
doing parameter local master = yes
doing parameter wins server = 192.168.100.1
doing parameter wins support = no
doing parameter netbios name = server04
handle_netbios_name: set global_myname to: SERVER04
doing parameter add machine script =
doing parameter preferred master = auto
doing parameter encrypt passwords = yes
doing parameter security = domain
doing parameter password server = *
doing parameter winbind separator = +
doing parameter idmap uid = 10000-20000
doing parameter idmap gid = 10000-20000
doing parameter winbind enum users = yes
doing parameter winbind enum groups = yes
doing parameter winbind use default domain = yes
doing parameter template homedir = /home/%U
doing parameter template shell = /bin/false
doing parameter hosts allow = 192.168.100. 127.0.0.1
doing parameter server string = %L
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_DOMAIN_MEMBER
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF-16LE
Registered charset UTF-16LE
Attempting to register new charset UCS-2BE
Registered charset UCS-2BE
Attempting to register new charset UTF-16BE
Registered charset UTF-16BE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset UTF-8
Registered charset UTF-8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Connecting to host=PC-DANIEL
internal_resolve_name: looking up PC-DANIEL#20
Opening cache file at /var/lib/samba/gencache.tdb
Returning valid cache entry: key = NBT/PC-DANIEL#20, value =
192.168.100.117:0, timeout = Fri Jul 14 15:46:58 2006

name PC-DANIEL#20 found.
Connecting to 192.168.100.117 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 TCP_KEEPCNT = 9
socket option TCP_KEEPIDLE = 7200
socket option TCP_KEEPINTVL = 75
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
write_socket(4,183)
write_socket(4,183) wrote 183
got smb length of 85
size=85
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=55297
smb_tid=0
smb_pid=5652
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]=53376 (0xD080)
smb_vwv[12]=32962 (0x80C2)
smb_vwv[13]=19083 (0x4A8B)
smb_vwv[14]=50855 (0xC6A7)
smb_vwv[15]=34817 (0x8801)
smb_vwv[16]=  255 (0xFF)
smb_bcc=16
[000] E9 3C C5 4B A3 E0 ED 4D  91 08 CD 7C D0 38 DF 35  .<.K...M ...|.8.5
size=85
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=55297
smb_tid=0
smb_pid=5652
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]=53376 (0xD080)
smb_vwv[12]=32962 (0x80C2)
smb_vwv[13]=19083 (0x4A8B)
smb_vwv[14]=50855 (0xC6A7)
smb_vwv[15]=34817 (0x8801)
smb_vwv[16]=  255 (0xFF)
smb_bcc=16
[000] E9 3C C5 4B A3 E0 ED 4D  91 08 CD 7C D0 38 DF 35  .<.K...M ...|.8.5
Serverzone is -7200
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
write_socket(4,166)
write_socket(4,166) wrote 166
got smb length of 342
size=342
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=5652
smb_uid=2048
smb_mid=2
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  342 (0x156)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=  225 (0xE1)
smb_bcc=299
[000] A1 81 DE 30 81 DB A0 03  0A 01 01 A1 0C 06 0A 2B  ...0.... .......+
[010] 06 01 04 01 82 37 02 02  0A A2 81 C5 04 81 C2 4E  .....7.. .......N
[020] 54 4C 4D 53 53 50 00 02  00 00 00 16 00 16 00 38  TLMSSP.. .......8
[030] 00 00 00 15 02 8A 62 6D  5E 22 C1 8A A3 2C 61 00  ......bm ^"...,a.
[040] 00 00 00 00 00 00 00 74  00 74 00 4E 00 00 00 05  .......t .t.N....
[050] 01 28 0A 00 00 00 0F 50  00 43 00 2D 00 42 00 45  .(.....P .C.-.B.E
[060] 00 4E 00 4A 00 41 00 4D  00 49 00 4E 00 02 00 16  .N.J.A.M .I.N....
[070] 00 50 00 43 00 2D 00 42  00 45 00 4E 00 4A 00 41  .P.C.-.B .E.N.J.A
[080] 00 4D 00 49 00 4E 00 01  00 16 00 50 00 43 00 2D  .M.I.N.. ...P.C.-
[090] 00 42 00 45 00 4E 00 4A  00 41 00 4D 00 49 00 4E  .B.E.N.J .A.M.I.N
[0A0] 00 04 00 16 00 70 00 63  00 2D 00 62 00 65 00 6E  .....p.c .-.b.e.n
[0B0] 00 6A 00 61 00 6D 00 69  00 6E 00 03 00 16 00 70  .j.a.m.i .n.....p
[0C0] 00 63 00 2D 00 62 00 65  00 6E 00 6A 00 61 00 6D  .c.-.b.e .n.j.a.m
[0D0] 00 69 00 6E 00 06 00 04  00 01 00 00 00 00 00 00  .i.n.... ........
[0E0] 00 57 00 69 00 6E 00 64  00 6F 00 77 00 73 00 20  .W.i.n.d .o.w.s.
[0F0] 00 35 00 2E 00 31 00 00  00 57 00 69 00 6E 00 64  .5...1.. .W.i.n.d
[100] 00 6F 00 77 00 73 00 20  00 32 00 30 00 30 00 30  .o.w.s.  .2.0.0.0
[110] 00 20 00 4C 00 41 00 4E  00 20 00 4D 00 61 00 6E  . .L.A.N . .M.a.n
[120] 00 61 00 67 00 65 00 72  00 00 00                 .a.g.e.r ...
size=342
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=5652
smb_uid=2048
smb_mid=2
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  342 (0x156)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=  225 (0xE1)
smb_bcc=299
[000] A1 81 DE 30 81 DB A0 03  0A 01 01 A1 0C 06 0A 2B  ...0.... .......+
[010] 06 01 04 01 82 37 02 02  0A A2 81 C5 04 81 C2 4E  .....7.. .......N
[020] 54 4C 4D 53 53 50 00 02  00 00 00 16 00 16 00 38  TLMSSP.. .......8
[030] 00 00 00 15 02 8A 62 6D  5E 22 C1 8A A3 2C 61 00  ......bm ^"...,a.
[040] 00 00 00 00 00 00 00 74  00 74 00 4E 00 00 00 05  .......t .t.N....
[050] 01 28 0A 00 00 00 0F 50  00 43 00 2D 00 42 00 45  .(.....P .C.-.B.E
[060] 00 4E 00 4A 00 41 00 4D  00 49 00 4E 00 02 00 16  .N.J.A.M .I.N....
[070] 00 50 00 43 00 2D 00 42  00 45 00 4E 00 4A 00 41  .P.C.-.B .E.N.J.A
[080] 00 4D 00 49 00 4E 00 01  00 16 00 50 00 43 00 2D  .M.I.N.. ...P.C.-
[090] 00 42 00 45 00 4E 00 4A  00 41 00 4D 00 49 00 4E  .B.E.N.J .A.M.I.N
[0A0] 00 04 00 16 00 70 00 63  00 2D 00 62 00 65 00 6E  .....p.c .-.b.e.n
[0B0] 00 6A 00 61 00 6D 00 69  00 6E 00 03 00 16 00 70  .j.a.m.i .n.....p
[0C0] 00 63 00 2D 00 62 00 65  00 6E 00 6A 00 61 00 6D  .c.-.b.e .n.j.a.m
[0D0] 00 69 00 6E 00 06 00 04  00 01 00 00 00 00 00 00  .i.n.... ........
[0E0] 00 57 00 69 00 6E 00 64  00 6F 00 77 00 73 00 20  .W.i.n.d .o.w.s.
[0F0] 00 35 00 2E 00 31 00 00  00 57 00 69 00 6E 00 64  .5...1.. .W.i.n.d
[100] 00 6F 00 77 00 73 00 20  00 32 00 30 00 30 00 30  .o.w.s.  .2.0.0.0
[110] 00 20 00 4C 00 41 00 4E  00 20 00 4D 00 61 00 6E  . .L.A.N . .M.a.n
[120] 00 61 00 67 00 65 00 72  00 00 00                 .a.g.e.r ...
Got challenge flags:
Got NTLMSSP neg_flags=0x628a0215
  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] B8 FD 99 7C C6 81 D4 C7                           ...|....
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(4,270)
write_socket(4,270) wrote 270
got smb length of 35
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=5652
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=5652
smb_uid=2048
smb_mid=3
smt_wct=0
smb_bcc=0
SPNEGO login failed: Logon failure
failed session setup with NT_STATUS_LOGON_FAILURE
Cannot connect to server.  Error was NT_STATUS_LOGON_FAILURE
</output>

Best regards,
Daniel


More information about the samba mailing list