summaryrefslogtreecommitdiff
path: root/source4/torture/ldap
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-14 10:50:57 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-14 10:50:57 +0200
commit8a505ec7555b6eda6ebff0af24b3db7a5f4b14c8 (patch)
treebdc35dc7bb52f0e14e71602663deb461b363540c /source4/torture/ldap
parente9686985cbf1f5234d9e9731176b1eb4e02911e8 (diff)
downloadsamba-8a505ec7555b6eda6ebff0af24b3db7a5f4b14c8.tar.gz
samba-8a505ec7555b6eda6ebff0af24b3db7a5f4b14c8.tar.bz2
samba-8a505ec7555b6eda6ebff0af24b3db7a5f4b14c8.zip
s4:torture - fix up "ldap_basic" test
Diffstat (limited to 'source4/torture/ldap')
-rw-r--r--source4/torture/ldap/basic.c11
1 files changed, 6 insertions, 5 deletions
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;
}
}