Jeremy <jra@cygnus.com>
authorSamba Release Account <samba-bugs@samba.org>
Wed, 23 Oct 1996 19:12:47 +0000 (19:12 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Wed, 23 Oct 1996 19:12:47 +0000 (19:12 +0000)
Removed AS_USER requirement for SMBulogoff. A valid TID (cnum) is not
given for this call, which become_user needs if it is not to return
an error. This fixes a specific case with NT4.0 which stops users
attaching to a Samba server using a different account to the one they
are logged in under.
(This used to be commit c65a2cdd830bcda396ad6a0bd51a9b80c9d26a67)

source3/smbd/server.c

index 2dc78e0176b0fb85a1fb5763070dba31b127c60c..c5a7a7ca02b9b67df7fb83d64e726245578de490 100644 (file)
@@ -2975,7 +2975,7 @@ struct smb_message_struct
    {SMBecho,"SMBecho",reply_echo,0},
    {SMBsesssetupX,"SMBsesssetupX",reply_sesssetup_and_X,0},
    {SMBtconX,"SMBtconX",reply_tcon_and_X,0},
-   {SMBulogoffX, "SMBulogoffX", reply_ulogoffX, AS_USER}, 
+   {SMBulogoffX, "SMBulogoffX", reply_ulogoffX, 0}, /* ulogoff doesn't give a valid TID */
    {SMBgetatr,"SMBgetatr",reply_getatr,AS_USER},
    {SMBsetatr,"SMBsetatr",reply_setatr,AS_USER | NEED_WRITE},
    {SMBchkpth,"SMBchkpth",reply_chkpth,AS_USER},