hack: announce ability to have persistent handles, CA shares and cluster mode
authorChristian Ambach <ambi@samba.org>
Fri, 2 Mar 2012 22:05:07 +0000 (14:05 -0800)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:46:49 +0000 (18:46 +0200)
source3/smbd/smb2_negprot.c
source3/smbd/smb2_tcon.c

index 756bb71e87da68830224b28161034fce7466a48b..ee2ed50cca632e9b0cf766e83969f381fff1da4b 100644 (file)
@@ -250,6 +250,8 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
                capabilities |= SMB2_CAP_DFS;
        }
 
+       /* persistent */
+               capabilities += 0x10;
        /*
         * 0x10000 (65536) is the maximum allowed message size
         * for SMB 2.0
index 5f75e5ebe186ccfa0b424b61282a32ee7959eab9..a364d670ccedeaa7a5d6c65c5bfdd8fd3d22f39e 100644 (file)
@@ -275,6 +275,10 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
                *out_share_flags |= SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM;
        }
 
+       /*announce CA + cluster */
+       *out_capabilities += 0x10;
+       *out_capabilities += 0x40;
+
        *out_maximal_access = tcon->compat_conn->share_access;
 
        *out_tree_id = tcon->tid;