Don't use lsa_Delete any more, as smbd now refuses it.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 26 Aug 2008 06:26:46 +0000 (16:26 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Aug 2008 06:26:46 +0000 (16:26 +1000)
(This used to be commit 8e1285a1ee60e3d3b7352ab7269d535c41916b46)

source4/torture/rpc/session_key.c

index 0df7e576ee9175a66413a425c959186917cce506..c069c6272408edbf39456785dec4c2856a041c66 100644 (file)
@@ -42,7 +42,7 @@ static bool test_CreateSecret_basic(struct dcerpc_pipe *p,
        struct lsa_SetSecret r3;
        struct lsa_QuerySecret r4;
        struct policy_handle sec_handle;
        struct lsa_SetSecret r3;
        struct lsa_QuerySecret r4;
        struct policy_handle sec_handle;
-       struct lsa_Delete d;
+       struct lsa_DeleteObject d;
        struct lsa_DATA_BUF buf1;
        struct lsa_DATA_BUF_PTR bufp1;
        DATA_BLOB enc_key;
        struct lsa_DATA_BUF buf1;
        struct lsa_DATA_BUF_PTR bufp1;
        DATA_BLOB enc_key;
@@ -128,7 +128,8 @@ static bool test_CreateSecret_basic(struct dcerpc_pipe *p,
        torture_assert_str_equal(tctx, secret1, secret2, "Returned secret invalid");
 
        d.in.handle = &sec_handle;
        torture_assert_str_equal(tctx, secret1, secret2, "Returned secret invalid");
 
        d.in.handle = &sec_handle;
-       status = dcerpc_lsa_Delete(p, tctx, &d);
+       d.out.handle = &sec_handle;
+       status = dcerpc_lsa_DeleteObject(p, tctx, &d);
        torture_assert_ntstatus_ok(tctx, status, "delete should have returned OKINVALID_HANDLE");
        return true;
 }
        torture_assert_ntstatus_ok(tctx, status, "delete should have returned OKINVALID_HANDLE");
        return true;
 }