s4:torture:spoolss: use smb2_connect() instead of smb2_connet_ext()
authorMichael Adam <obnox@samba.org>
Wed, 25 Sep 2013 04:21:38 +0000 (06:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 5 Oct 2013 12:04:07 +0000 (14:04 +0200)
in print_test_smbd: we don't need to pass the previous_session_id.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/rpc/spoolss.c

index 4c84bc0d1386e586c2b3c3ddb9e695649b1df200..f2a44c9c46d018d69888c221f6d758599291c0f2 100644 (file)
@@ -8173,18 +8173,17 @@ static bool test_print_test_smbd(struct torture_context *tctx,
        torture_comment(tctx, "Testing smbd job spooling\n");
        lpcfg_smbcli_options(tctx->lp_ctx, &options);
 
-       status = smb2_connect_ext(mem_ctx,
-                                 torture_setting_string(tctx, "host", NULL),
-                                 lpcfg_smb_ports(tctx->lp_ctx),
-                                 share,
-                                 lpcfg_resolve_context(tctx->lp_ctx),
-                                 credentials,
-                                 0,
-                                 &tree,
-                                 tctx->ev,
-                                 &options,
-                                 lpcfg_socket_options(tctx->lp_ctx),
-                                 lpcfg_gensec_settings(tctx, tctx->lp_ctx));
+       status = smb2_connect(mem_ctx,
+                             torture_setting_string(tctx, "host", NULL),
+                             lpcfg_smb_ports(tctx->lp_ctx),
+                             share,
+                             lpcfg_resolve_context(tctx->lp_ctx),
+                             credentials,
+                             &tree,
+                             tctx->ev,
+                             &options,
+                             lpcfg_socket_options(tctx->lp_ctx),
+                             lpcfg_gensec_settings(tctx, tctx->lp_ctx));
        if (!NT_STATUS_IS_OK(status)) {
                printf("Failed to connect to SMB2 printer %s - %s\n",
                       share, nt_errstr(status));