failed session setup

bs at niggard.org bs at niggard.org
Thu Sep 9 10:16:30 GMT 1999


On Sat, 4 Sep 1999, Apeximov Dmitry wrote:

> [1999/09/02 17:19:08, 3] smbd/reply.c:reply_sesssetup_and_X(658)
>   sesssetupX:name=[?,?|*?(???‰‘??i?‹t??J7ADV]
>                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                 what's matter? Why did I get that trash?
> 

This looks like an incompatibility between smbclient and smbd when used
with non-encrypted passwords. I think the code responsible for this is in
smbd/reply.c:

    if(!doencrypt) {
      ... 
      if (passlen1 > 0 && passlen2 > 0 && passlen2 != 1)
        passlen2 = 0;
    }

As you can see, passlen2 is set to 0 and never reset to something
usefull. And a bit later:

    p += passlen1 + passlen2;
    ...
    fstrcpy(user,p);

smbd does not jump over the 2nd password.
(it is well possible that smbclient is wrong in providing a 2nd pwd, i
have no windows machine and cannot test the "correct" behavior...) 

hope this helps...

cu,
bertl.



More information about the samba-ntdom mailing list