One old, one new (rather long)

Lonnie J. Borntreger lonnie at borntreger.com
Thu Jul 15 08:19:13 GMT 1999


SETUP: Win95 talking to samba (2.1-prealpha) on Solaris 7 SPARC.

==========================OLD==============================
Let's start with the old: Lately I've noticed a possible byte/word alignment
issue.  The log has been showing stuff like "Domain=[]  NativeOS=[WHNET]
NativeLanMan=[Windows 4.0]".  Seemed funny, since my domain is WHNET and my
OS is "Windows 4.0".  I was just about to follow Luke's advice and send in a
bug report, decided to get the latest cvs, and the problem was fixed... I
thought.  Wrong!  It works at times and fails at another.  Let's see if I
can explain this:

Here is where it works:
[1999/07/15 02:38:40, 3] smbd/process.c:process_smb(569)
  Transaction 3 of length 153
[from multiple loggings from lib/util.c:show_msg]
  size=149
  smb_com=0x73
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=16
  smb_flg2=0
  smb_tid=65535
  smb_pid=7967
  smb_uid=1
  smb_mid=40706
  smt_wct=13
  smb_vwv[0]=117 (0x75)
  smb_vwv[1]=122 (0x7A)
  smb_vwv[2]=2920 (0xB68)
  smb_vwv[3]=50 (0x32)
  smb_vwv[4]=0 (0x0)
  smb_vwv[5]=4090 (0xFFA)
  smb_vwv[6]=0 (0x0)
  smb_vwv[7]=24 (0x18)
  smb_vwv[8]=0 (0x0)
  smb_vwv[9]=0 (0x0)
  smb_vwv[10]=0 (0x0)
  smb_vwv[11]=1 (0x1)
  smb_vwv[12]=0 (0x0)
  smb_bcc=61
[1999/07/15 01:32:19, 10] lib/util.c:dump_data(2990)
  [000] 56 44 D0 54 69 E3 28 30  BE B5 30 0C 68 56 08 2F  VD.Ti.(0 ..0.hV./
  [010] 19 48 01 90 3D 40 D1 E5  36 37 47 4F 41 54 00 57  .H..=@.. 67GOAT.W
  [020] 48 4E 45 54 00 57 69 6E  64 6F 77 73 20 34 2E 30  HNET.Win dows 4.0
  [030] 00 57 69 6E 64 6F 77 73  20 34 2E 30 00           .Windows  4.0.
[1999/07/15 01:32:19, 3] smbd/process.c:switch_message(402)
  switch message SMBsesssetupX (pid 4090)
[1999/07/15 01:32:19, 3] smbd/reply.c:reply_sesssetup_and_X(640)
  Domain=[WHNET]  NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
[1999/07/15 01:32:19, 3] smbd/reply.c:reply_sesssetup_and_X(643)
  sesssetupX:name=[67GOAT]


Here is where it fails:
[1999/07/15 02:38:40, 3] smbd/process.c:process_smb(569)
  Transaction 2 of length 124
[from multiple loggings from lib/util.c:show_msg]
  size=120
  smb_com=0x73
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=16
  smb_flg2=0
  smb_tid=0
  smb_pid=7967
  smb_uid=0
  smb_mid=45186
  smt_wct=13
  smb_vwv[0]=117 (0x75)
  smb_vwv[1]=93 (0x5D)
  smb_vwv[2]=2920 (0xB68)
  smb_vwv[3]=50 (0x32)
  smb_vwv[4]=0 (0x0)
  smb_vwv[5]=4104 (0x1008)
  smb_vwv[6]=0 (0x0)
  smb_vwv[7]=0 (0x0)
  smb_vwv[8]=0 (0x0)
  smb_vwv[9]=0 (0x0)
  smb_vwv[10]=0 (0x0)
  smb_vwv[11]=1 (0x1)
  smb_vwv[12]=0 (0x0)
  smb_bcc=32
[1999/07/15 02:38:40, 10] lib/util.c:dump_data(2990)
  [000] 00 00 57 48 4E 45 54 00  57 69 6E 64 6F 77 73 20  ..WHNET. Windows
  [010] 34 2E 30 00 57 69 6E 64  6F 77 73 20 34 2E 30 00  4.0.Wind ows 4.0.
[1999/07/15 02:38:40, 3] smbd/process.c:switch_message(402)
  switch message SMBsesssetupX (pid 4104)
[1999/07/15 02:38:40, 3] smbd/reply.c:reply_sesssetup_and_X(640)
  Domain=[]  NativeOS=[WHNET] NativeLanMan=[Windows 4.0]
[1999/07/15 02:38:40, 3] smbd/reply.c:reply_sesssetup_and_X(643)
  sesssetupX:name=[]

==========================NEW==============================
Now for the New: I can no longer authenticate.  I now see things like:
[1999/07/15 01:32:19, 10] passdb/passdb.c:pwdb_smb_map_names(288)
  pwdb_smb_map_names: unix 67goat nt 67goat unix 21749 nt87996
[1999/07/15 01:32:19, 3] smbd/password.c:pass_check_smb(515)
  Error : UNIX and SMB uids in password files do not match !

Seems funny since the uid in smbpasswd is also shown as 21749.  Actually,
every single nt uid comes back incorrect.  I noticed that some of the
password and passdb stuff changed in the last snapshot.  (It seems - from
extra debugging statements - to get set incorrectly between lines 343 and
364 of passdb.c - during the first pass - and then fails the second time
through - due to iterate_getsmbpwnam).



Anybody got any clues as to what is causing these errors?  They are outside
of my scope of samba/smb/nt knowledge.

TTFN,
Lonnie Borntreger
lonnie at borntreger.com
http://www.borntreger.com/



More information about the samba-ntdom mailing list