diff options
author | Günther Deschner <gd@samba.org> | 2011-01-31 15:13:09 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-01-31 15:16:35 +0100 |
commit | 8f4eee905488fccb56443b1f2d80e804ffc9422a (patch) | |
tree | 0f54b21a279f446424358fa15a255a375a891f25 /source4/torture | |
parent | 35a7bebe2bc2c26ad2ee0a2ef9ce4217ca42e0ef (diff) | |
download | samba-8f4eee905488fccb56443b1f2d80e804ffc9422a.tar.gz samba-8f4eee905488fccb56443b1f2d80e804ffc9422a.tar.bz2 samba-8f4eee905488fccb56443b1f2d80e804ffc9422a.zip |
s4-smbtorture: make it more obvious this are w2k dumps in netlogon ndr test.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/ndr/netlogon.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/torture/ndr/netlogon.c b/source4/torture/ndr/netlogon.c index d247eb1a8b..53c478b2d7 100644 --- a/source4/torture/ndr/netlogon.c +++ b/source4/torture/ndr/netlogon.c @@ -105,7 +105,7 @@ static bool netrserverreqchallenge_out_check(struct torture_context *tctx, return true; } -static const uint8_t netrlogonsamlogon_in_data[] = { +static const uint8_t netrlogonsamlogon_w2k_in_data[] = { 0x00, 0x00, 0x02, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x5c, 0x00, 0x5c, 0x00, 0x57, 0x00, 0x32, 0x00, 0x4b, 0x00, 0x53, 0x00, 0x52, 0x00, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -132,8 +132,8 @@ static const uint8_t netrlogonsamlogon_in_data[] = { 0x06, 0x00 }; -static bool netrlogonsamlogon_in_check(struct torture_context *tctx, - struct netr_LogonSamLogon *r) +static bool netrlogonsamlogon_w2k_in_check(struct torture_context *tctx, + struct netr_LogonSamLogon *r) { uint8_t credential_expected[8] = { 0x08, 0xaf, 0x72, 0x50, 0xa0, 0x5b, 0x50, 0x19 }; uint8_t return_authenticator_expected[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; @@ -168,14 +168,14 @@ static bool netrlogonsamlogon_in_check(struct torture_context *tctx, return true; } -static const uint8_t netrlogonsamlogon_out_data[] = { +static const uint8_t netrlogonsamlogon_w2k_out_data[] = { 0x6c, 0xdb, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0xc0 }; -static bool netrlogonsamlogon_out_check(struct torture_context *tctx, - struct netr_LogonSamLogon *r) +static bool netrlogonsamlogon_w2k_out_check(struct torture_context *tctx, + struct netr_LogonSamLogon *r) { uint8_t return_authenticator_expected[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; @@ -199,11 +199,11 @@ struct torture_suite *ndr_netlogon_suite(TALLOC_CTX *ctx) torture_suite_add_ndr_pull_fn_test(suite, netr_ServerAuthenticate3, netrserverauthenticate3_in_data, NDR_IN, netrserverauthenticate3_in_check ); torture_suite_add_ndr_pull_fn_test(suite, netr_ServerAuthenticate3, netrserverauthenticate3_out_data, NDR_OUT, netrserverauthenticate3_out_check ); - torture_suite_add_ndr_pull_fn_test(suite, netr_LogonSamLogon, netrlogonsamlogon_in_data, NDR_IN, netrlogonsamlogon_in_check ); + torture_suite_add_ndr_pull_fn_test(suite, netr_LogonSamLogon, netrlogonsamlogon_w2k_in_data, NDR_IN, netrlogonsamlogon_w2k_in_check ); #if 0 /* samba currently fails to parse a validation level 6 samlogon reply * from w2k and other servers - gd */ - torture_suite_add_ndr_pull_io_test(suite, netr_LogonSamLogon, netrlogonsamlogon_in_data, netrlogonsamlogon_out_data, netrlogonsamlogon_out_check); + torture_suite_add_ndr_pull_io_test(suite, netr_LogonSamLogon, netrlogonsamlogon_w2k_in_data, netrlogonsamlogon_w2k_out_data, netrlogonsamlogon_w2k_out_check); #endif return suite; |