HACK two tconX... still works=> server doesn't send SMB_EXTENDED_SIGNATURES on the...
authorStefan Metzmacher <metze@samba.org>
Thu, 2 Aug 2012 08:01:06 +0000 (10:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 18 Sep 2012 03:10:21 +0000 (05:10 +0200)
source3/libsmb/clidfs.c

index 95f8817a94b70765027f1340f5b0ee45f66aba85..de549b892cd047a94c33d919c9c58275106857b4 100644 (file)
@@ -236,6 +236,14 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx,
                return status;
        }
 
+       status = cli_tree_connect(c, sharename, "?????",
+                                 password, strlen(password)+1);
+       if (!NT_STATUS_IS_OK(status)) {
+               d_printf("tree connect failed: %s\n", nt_errstr(status));
+               cli_shutdown(c);
+               return status;
+       }
+
        if (force_encrypt) {
                status = cli_cm_force_encryption(c,
                                        username,