From 8a505ec7555b6eda6ebff0af24b3db7a5f4b14c8 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 14 Oct 2009 10:50:57 +0200 Subject: s4:torture - fix up "ldap_basic" test --- source4/torture/ldap/basic.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/ldap/basic.c b/source4/torture/ldap/basic.c index c2a26f81b8..a9d9ea0832 100644 --- a/source4/torture/ldap/basic.c +++ b/source4/torture/ldap/basic.c @@ -213,7 +213,8 @@ static bool test_error_codes(struct torture_context *tctx, { struct ldap_message *msg, *rep; struct ldap_request *req; - char *err_code_str, *endptr; + const char *err_code_str; + char *endptr; WERROR err; NTSTATUS status; @@ -263,8 +264,8 @@ static bool test_error_codes(struct torture_context *tctx, return false; } } else { - if ((!W_ERROR_EQUAL(err, WERR_DS_GENERIC_ERROR)) - || (rep->r.AddResponse.resultcode != 80)) { + if ((!W_ERROR_EQUAL(err, WERR_DS_OBJ_CLASS_VIOLATION)) + || (rep->r.AddResponse.resultcode != 65)) { return false; } } @@ -304,8 +305,8 @@ static bool test_error_codes(struct torture_context *tctx, return false; } } else { - if ((!W_ERROR_EQUAL(err, WERR_DS_GENERIC_ERROR)) - || (rep->r.ModifyResponse.resultcode != 80)) { + if ((!W_ERROR_EQUAL(err, WERR_DS_OPERATIONS_ERROR)) + || (rep->r.ModifyResponse.resultcode != 1)) { return false; } } -- cgit