summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2021-12-09 13:19:27 +1300
committerJoseph Sutton <jsutton@samba.org>2022-01-19 20:50:35 +0000
commita24280dc72d05828befdf4bd1288bbea1e97e08c (patch)
tree47ce3862b0ec534712fb45fc47ab759ef1931741 /source4
parent9eead4853e26c1f589c4ef69469c199ff6670060 (diff)
downloadsamba-a24280dc72d05828befdf4bd1288bbea1e97e08c.tar.gz
s4:torture: Remove PAC-REQUEST check for RESPONSE_TOO_BIG
Needed by the Heimdal upgrade... NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN! Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/krb5/kdc-heimdal.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/torture/krb5/kdc-heimdal.c b/source4/torture/krb5/kdc-heimdal.c
index b1bbac94ccf..2ee751b2619 100644
--- a/source4/torture/krb5/kdc-heimdal.c
+++ b/source4/torture/krb5/kdc-heimdal.c
@@ -390,16 +390,8 @@ static bool torture_krb5_post_recv_test(struct torture_krb5_context *test_contex
torture_assert(test_context->tctx,
ok,
"torture_check_krb5_error failed");
- } else if (test_context->packet_count == 1) {
- ok = torture_check_krb5_error(test_context,
- recv_buf,
- KRB5KRB_ERR_RESPONSE_TOO_BIG,
- false);
- torture_assert(test_context->tctx,
- ok,
- "torture_check_krb5_error failed");
} else if ((decode_KRB_ERROR(recv_buf->data, recv_buf->length, &error, &used) == 0)
- && (test_context->packet_count == 2)) {
+ && (test_context->packet_count == 1)) {
torture_assert_int_equal(test_context->tctx, used, recv_buf->length, "length mismatch");
torture_assert_int_equal(test_context->tctx, error.pvno, 5, "Got wrong error.pvno");
torture_assert_int_equal(test_context->tctx, error.error_code, KRB5KRB_ERR_RESPONSE_TOO_BIG - KRB5KDC_ERR_NONE,
@@ -413,7 +405,7 @@ static bool torture_krb5_post_recv_test(struct torture_krb5_context *test_contex
torture_assert_int_equal(test_context->tctx, test_context->as_rep.pvno, 5, "Got wrong as_rep->pvno");
free_AS_REP(&test_context->as_rep);
}
- torture_assert(test_context->tctx, test_context->packet_count < 3, "too many packets");
+ torture_assert(test_context->tctx, test_context->packet_count < 2, "too many packets");
free_AS_REQ(&test_context->as_req);
break;