summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-10-08 06:44:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:39 -0500
commit9abbd9e860c6a609be90ac60d16fa7e684b9d089 (patch)
treef1509c797fb8267788fea3764f99b2a8479c2ede /source4/ldap_server
parent03341ec5bb1aa06081e3bf93301e7d61eda9d1ba (diff)
downloadsamba-9abbd9e860c6a609be90ac60d16fa7e684b9d089.tar.gz
samba-9abbd9e860c6a609be90ac60d16fa7e684b9d089.tar.bz2
samba-9abbd9e860c6a609be90ac60d16fa7e684b9d089.zip
r2855: fix error codes for Compare
metze (This used to be commit d23335bc14de7f0402e3d536006d04e813403893)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_simple_ldb.c8
1 files changed, 4 insertions, 4 deletions
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");