r11746: revert my last commits, I now understand how we decide between
authorStefan Metzmacher <metze@samba.org>
Wed, 16 Nov 2005 18:40:37 +0000 (18:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:21 +0000 (13:46 -0500)
finished and non-finished sessions

metze
(This used to be commit 7cf6b307bc820b87663e4b9d1aeb5e730729b24e)

source4/smb_server/reply.c
source4/smb_server/service.c
source4/smb_server/smb_server.c

index 75c5772bf7600007914e12adf3be7a8708487a72..4526d6f7f3e11519c5f198b9ca89ce947192cba1 100644 (file)
@@ -2174,7 +2174,7 @@ void reply_ulogoffX(struct smbsrv_request *req)
        struct smbsrv_tcon *tcon;
        NTSTATUS status;
 
-       if (!req->session || !req->session->finished_sesssetup) {
+       if (!req->session) {
                req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRbaduid));
                return;
        }
index 24d8a5250e16cedf07415cf993bf979ccbef0043..213cf6726bd4d5bff1898af2181ecc138ec3befc 100644 (file)
@@ -156,7 +156,7 @@ NTSTATUS tcon_backend(struct smbsrv_request *req, union smb_tcon *con)
        NTSTATUS status;
 
        /* can only do bare tcon in share level security */
-       if ((!req->session || !req->session->finished_sesssetup) && lp_security() != SEC_SHARE) {
+       if (!req->session && lp_security() != SEC_SHARE) {
                return NT_STATUS_ACCESS_DENIED;
        }
 
index 7e1e8a8f4ebe74ef981d732913d95897294ff4b5..340674b8df44c4f0fe14d9a126a4001522287360 100644 (file)
@@ -504,7 +504,7 @@ static void switch_message(int type, struct smbsrv_request *req)
        }
 
        /* see if the vuid is valid */
-       if ((flags & AS_USER) && (!req->session || !req->session->finished_sesssetup)) {
+       if ((flags & AS_USER) && !req->session) {
                /* amazingly, the error code depends on the command */
                switch (type) {
                        case SMBntcreateX: