diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-11-15 02:45:31 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:45:19 +0100 |
commit | bd6a651b38446512af4982a376ddead658b6ee74 (patch) | |
tree | 5a8973e62295cdb5fe79e618b8ec61bf0e76e30a /source4/ldap_server | |
parent | d544879e434c36f02bfc7d1322f1179d00294669 (diff) | |
download | samba-bd6a651b38446512af4982a376ddead658b6ee74.tar.gz samba-bd6a651b38446512af4982a376ddead658b6ee74.tar.bz2 samba-bd6a651b38446512af4982a376ddead658b6ee74.zip |
r25960: Enable checks on the validity of the search base on sam.ldb in Samba4.
Remove bogus check to return NO_SUCH_ENTRY in ldap_backend.c, as this
error is now correctly emited from ldb.
Andrew Bartlett
(This used to be commit ed57862b90812e5a38ca81935b131338112fb19f)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_backend.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source4/ldap_server/ldap_backend.c b/source4/ldap_server/ldap_backend.c index 25d19a5a58..62fe6270dc 100644 --- a/source4/ldap_server/ldap_backend.c +++ b/source4/ldap_server/ldap_backend.c @@ -300,10 +300,6 @@ reply: DEBUG(10,("SearchRequest: results: [%d]\n", res->count)); result = LDAP_SUCCESS; errstr = NULL; - } else if (res->count == 0) { - DEBUG(10,("SearchRequest: no results\n")); - result = LDAP_NO_SUCH_OBJECT; - errstr = ldb_errstring(samdb); } if (res->controls) { done_r->msg->controls = res->controls; |