]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Remove a check on p->vuid in _netr_LogonSamLogon/off
authorVolker Lendecke <vl@samba.org>
Tue, 24 Jun 2008 13:21:46 +0000 (15:21 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 26 Jun 2008 11:13:23 +0000 (13:13 +0200)
This is in preparation of removing p->vuid completely. I don't think this check
here makes any sort of sense, it only proves that the user having done the
session setup on its way to the schannel bind (ususally anonymous) did not do a
logoff in between. But this would have been caught way before this in
reply_pipe_write_and_X.

source/rpc_server/srv_netlog_nt.c

index a0812283d65f7923b0f21d3bf65cce4b619da068..7ece482d754fe6c370ec5e5aa9b980b784c76551 100644 (file)
@@ -702,9 +702,6 @@ NTSTATUS _netr_LogonSamLogoff(pipes_struct *p,
        }
 
 
-       if (!get_valid_user_struct(p->vuid))
-               return NT_STATUS_NO_SUCH_USER;
-
        /* Using the remote machine name for the creds store: */
        /* r->in.computer_name */
 
@@ -790,9 +787,6 @@ NTSTATUS _netr_LogonSamLogon(pipes_struct *p,
                return NT_STATUS_ACCESS_DENIED;
        }
 
-       if (!get_valid_user_struct(p->vuid))
-               return NT_STATUS_NO_SUCH_USER;
-
        if (process_creds) {
                fstring remote_machine;