summaryrefslogtreecommitdiff
path: root/source4/torture/ndr
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-03-02 18:01:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:06 -0500
commit648fe6610ef8fce0179cc10cb7162b402b2761ee (patch)
treee8314a0760bc250e26a4850adb280f645eae84fd /source4/torture/ndr
parent737454d6a07ad08cc244e9d98cafc95a7565e87b (diff)
downloadsamba-648fe6610ef8fce0179cc10cb7162b402b2761ee.tar.gz
samba-648fe6610ef8fce0179cc10cb7162b402b2761ee.tar.bz2
samba-648fe6610ef8fce0179cc10cb7162b402b2761ee.zip
r21660: Add another test
(This used to be commit 0b1e793ed56e3c4c592d8baaf3139e42b01b942b)
Diffstat (limited to 'source4/torture/ndr')
-rw-r--r--source4/torture/ndr/samr.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/torture/ndr/samr.c b/source4/torture/ndr/samr.c
index 981718bcde..9781014cf1 100644
--- a/source4/torture/ndr/samr.c
+++ b/source4/torture/ndr/samr.c
@@ -70,6 +70,17 @@ static const uint8_t samr_lookupnamesindomain_out_data[] = {
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
+static const uint8_t samr_openuser_in_data[] = {
+ 0x01, 0x00, 0x00, 0x00, 0x60, 0xf0, 0x16, 0x2b, 0x52, 0x19, 0x4a, 0x47,
+ 0x9e, 0x88, 0x8b, 0xe8, 0x93, 0xe6, 0xbf, 0x36, 0xb0, 0x00, 0x00, 0x00,
+ 0xeb, 0x03, 0x00, 0x00
+};
+
+static const uint8_t samr_openuser_out_data[] = {
+ 0x02, 0x00, 0x00, 0x00, 0xd8, 0x6e, 0xec, 0x8c, 0xe1, 0x1f, 0x2d, 0x41,
+ 0x99, 0x53, 0x13, 0xe9, 0xa4, 0x51, 0xe8, 0x1d, 0x00, 0x00, 0x00, 0x00
+};
+
struct torture_suite *ndr_samr_suite(TALLOC_CTX *ctx)
{
struct torture_suite *suite = torture_suite_create(ctx, "samr");
@@ -83,6 +94,9 @@ struct torture_suite *ndr_samr_suite(TALLOC_CTX *ctx)
torture_suite_add_ndr_pull_fn_test(suite, samr_OpenDomain, samr_opendomain_in_data, NDR_IN, NULL);
torture_suite_add_ndr_pull_fn_test(suite, samr_OpenDomain, samr_opendomain_out_data, NDR_OUT, NULL);
+ torture_suite_add_ndr_pull_fn_test(suite, samr_OpenUser, samr_openuser_in_data, NDR_IN, NULL);
+ torture_suite_add_ndr_pull_fn_test(suite, samr_OpenUser, samr_openuser_out_data, NDR_OUT, NULL);
+
return suite;
}