r11567: Ldb API change patch.
authorSimo Sorce <idra@samba.org>
Tue, 8 Nov 2005 00:11:45 +0000 (00:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:45:53 +0000 (13:45 -0500)
commit5c9590587197dcb95007fdc54318187d5716c7c6
treed5161aa628d8a4bc4f11bf849d76a451ff44522c
parent14b59bcbec1a288810efee5c9442dff30f1a474a
r11567: Ldb API change patch.

This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.

I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.

Simo.
(This used to be commit 22c8c97e6fb466b41859e090e959d7f1134be780)
39 files changed:
source4/auth/gensec/schannel_state.c
source4/dsdb/samdb/cracknames.c
source4/dsdb/samdb/ldb_modules/objectguid.c
source4/dsdb/samdb/ldb_modules/proxy.c
source4/dsdb/samdb/ldb_modules/samldb.c
source4/kdc/hdb-ldb.c
source4/ldap_server/ldap_rootdse.c
source4/ldap_server/ldap_simple_ldb.c
source4/lib/gendb.c
source4/lib/ldb/common/ldb.c
source4/lib/ldb/common/ldb_modules.c
source4/lib/ldb/include/ldb.h
source4/lib/ldb/include/ldb_private.h
source4/lib/ldb/ldb_ildap/ldb_ildap.c
source4/lib/ldb/ldb_ldap/ldb_ldap.c
source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
source4/lib/ldb/ldb_tdb/ldb_index.c
source4/lib/ldb/ldb_tdb/ldb_search.c
source4/lib/ldb/ldb_tdb/ldb_tdb.c
source4/lib/ldb/ldb_tdb/ldb_tdb.h
source4/lib/ldb/modules/ldb_map.c
source4/lib/ldb/modules/operational.c
source4/lib/ldb/modules/rdn_name.c
source4/lib/ldb/modules/schema.c
source4/lib/ldb/modules/skel.c
source4/lib/ldb/tests/slapd.conf
source4/lib/ldb/tools/ldbdel.c
source4/lib/ldb/tools/ldbedit.c
source4/lib/ldb/tools/ldbsearch.c
source4/lib/ldb/tools/ldbtest.c
source4/lib/registry/reg_backend_ldb.c
source4/lib/tdb/include/tdbconfig.h.in
source4/lib/util_str.c
source4/libnet/libnet_join.c
source4/nbt_server/wins/winsdb.c
source4/rpc_server/spoolss/dcesrv_spoolss.c
source4/scripting/ejs/smbcalls_ldb.c
source4/wrepl_server/wrepl_in_call.c
source4/wrepl_server/wrepl_server.c