From 9abbd9e860c6a609be90ac60d16fa7e684b9d089 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 8 Oct 2004 06:44:02 +0000 Subject: r2855: fix error codes for Compare metze (This used to be commit d23335bc14de7f0402e3d536006d04e813403893) --- source4/ldap_server/ldap_simple_ldb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4') diff --git a/source4/ldap_server/ldap_simple_ldb.c b/source4/ldap_server/ldap_simple_ldb.c index 1ac3796000..b5cfbca7c6 100644 --- a/source4/ldap_server/ldap_simple_ldb.c +++ b/source4/ldap_server/ldap_simple_ldb.c @@ -470,12 +470,12 @@ static NTSTATUS sldb_Compare(struct ldapsrv_partition *partition, struct ldapsrv if (count == 1) { DEBUG(10,("sldb_Compare: matched\n")); - result = 0; + result = 6; errstr = NULL; } else if (count == 0) { - result = 32; - errstr = talloc_strdup(compare_r, ldb_errstring(samdb->ldb)); - DEBUG(10,("sldb_Compare: no results: %s\n", errstr)); + DEBUG(10,("sldb_Compare: doesn't matched\n")); + result = 5; + errstr = NULL; } else if (count > 1) { result = 80; errstr = talloc_strdup(compare_r, "too many objects match"); -- cgit