r22681: Fix standalone ldb build when parent directory name != ldb.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 5 May 2007 18:50:56 +0000 (18:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:00 +0000 (14:52 -0500)
(This used to be commit 1093875d59f1ea9b8bd82277d4f9d8366e584952)

49 files changed:
source4/dsdb/samdb/ldb_modules/objectguid.c
source4/dsdb/samdb/ldb_modules/partition.c
source4/dsdb/samdb/ldb_modules/update_keytab.c
source4/lib/ldb/common/attrib_handlers.c
source4/lib/ldb/common/ldb.c
source4/lib/ldb/common/ldb_attributes.c
source4/lib/ldb/common/ldb_controls.c
source4/lib/ldb/common/ldb_debug.c
source4/lib/ldb/common/ldb_dn.c
source4/lib/ldb/common/ldb_ldif.c
source4/lib/ldb/common/ldb_match.c
source4/lib/ldb/common/ldb_modules.c
source4/lib/ldb/common/ldb_msg.c
source4/lib/ldb/common/ldb_parse.c
source4/lib/ldb/common/ldb_utf8.c
source4/lib/ldb/common/qsort.c
source4/lib/ldb/config.mk
source4/lib/ldb/examples/ldbreader.c
source4/lib/ldb/examples/ldifreader.c
source4/lib/ldb/include/ldb_includes.h [moved from source4/lib/ldb/include/includes.h with 100% similarity]
source4/lib/ldb/ldb_ildap/ldb_ildap.c
source4/lib/ldb/ldb_ldap/ldb_ldap.c
source4/lib/ldb/ldb_tdb/ldb_cache.c
source4/lib/ldb/ldb_tdb/ldb_index.c
source4/lib/ldb/ldb_tdb/ldb_pack.c
source4/lib/ldb/ldb_tdb/ldb_search.c
source4/lib/ldb/ldb_tdb/ldb_tdb.c
source4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
source4/lib/ldb/modules/asq.c
source4/lib/ldb/modules/ldb_map.c
source4/lib/ldb/modules/ldb_map_inbound.c
source4/lib/ldb/modules/ldb_map_outbound.c
source4/lib/ldb/modules/ldb_map_private.h
source4/lib/ldb/modules/objectclass.c
source4/lib/ldb/modules/operational.c
source4/lib/ldb/modules/paged_results.c
source4/lib/ldb/modules/paged_searches.c
source4/lib/ldb/modules/rdn_name.c
source4/lib/ldb/modules/skel.c
source4/lib/ldb/modules/sort.c
source4/lib/ldb/samba/ldif_handlers.c
source4/lib/ldb/tools/convert.c
source4/lib/ldb/tools/ldbdel.c
source4/lib/ldb/tools/ldbedit.c
source4/lib/ldb/tools/ldbmodify.c
source4/lib/ldb/tools/ldbrename.c
source4/lib/ldb/tools/ldbsearch.c
source4/lib/ldb/tools/ldbtest.c
source4/lib/ldb/tools/oLschema2ldif.c

index 76413ca56be0aa08abdbd10e3f672ad6a53e3b0c..457440804bc320f33b39a5b711fcc32e784ea8c2 100644 (file)
@@ -35,7 +35,7 @@
  */
 
 #include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb/include/ldb_includes.h"
 #include "librpc/gen_ndr/ndr_misc.h"
 
 static struct ldb_message_element *objectguid_find_attribute(const struct ldb_message *msg, const char *name)
index b301a985342b22ba12fd03a0279d6f1fbe241503..b0875d2965e7baba0b4db3cc05c0bd3ebaee733e 100644 (file)
@@ -36,7 +36,7 @@
  */
 
 #include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb/include/ldb_includes.h"
 #include "dsdb/samdb/samdb.h"
 
 struct partition_private_data {
index 21c9539e91d858ed017518f0e3f8ce080ba9403d..7b74a77e54a8f2f091390e49dd651fb6bc99a54e 100644 (file)
@@ -29,7 +29,7 @@
  */
 
 #include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb/include/ldb_includes.h"
 #include "auth/credentials/credentials.h"
 #include "auth/credentials/credentials_krb5.h"
 #include "system/kerberos.h"
index 223f2b5c16ea9f40db5df7aace3e98fdfd111ada..2d3b6135c8c284d0abe03da164c936c311e289b5 100644 (file)
   see rfc2252
 */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 #include "system/locale.h"
-#include "ldb/include/ldb_handlers.h"
+#include "ldb_handlers.h"
 
 /*
   default handler that just copies a ldb_val.
index 26213facf2a2d7ea471633a606d49e9713b17ae2..da085af747ef543f1a784d467a61f039454d3c55 100644 (file)
@@ -33,8 +33,7 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 /* 
    initialise a ldb context
index 0cd92576dc0ed296ca1db223c04c62a207218c03..b8ae2f6131f0ecab18957f08223b2052e18752f7 100644 (file)
@@ -29,8 +29,7 @@
   message matching logic generic
 */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 /*
   add a attribute to the ldb_schema
index 32bf4bd9d8eb26037b939be836519382d078becd..022691ae1e1123503b9f6db1f9dfe63d3116df19 100644 (file)
@@ -32,8 +32,7 @@
  *  Author: Simo Sorce
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 /* check if a control with the specified "oid" exist and return it */
 /* returns NULL if not found */
index 2548a5495aae3e4e9857af6610e3c8b36886d44e..78b056c64962cccad034e6869df0b08c72d90817 100644 (file)
@@ -32,8 +32,7 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 /*
   this allows the user to choose their own debug function
index 93f466c72dc1e5c7aa270627a666ca4897e12ddb..766f8a174c0ee10cd99b5d38abb4111d6ae87cc2 100644 (file)
@@ -34,9 +34,8 @@
  *  Author: Simo Sorce
  */
 
-#include "includes.h"
 #include <ctype.h>
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 #define LDB_DN_NULL_FAILED(x) if (!(x)) goto failed
 
index 572e677b441b764a45d7682146b7ca03b8e5dda3..6daeff7a90079254f5eb96019e4cec919574ee1a 100644 (file)
@@ -36,8 +36,7 @@
   see RFC2849 for the LDIF format definition
 */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 #include "system/locale.h"
 
 /*
index df11107402aff315c76c121edff0f14a2f81c35c..a9de08eeb653a40868258f191b292cd31599a83b 100644 (file)
@@ -33,8 +33,7 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 /*
   check if the scope matches in a search result
index e10332a0e1a16140bfca20ffb5e7013cced7fe02..dc49d8d12b26553fe3dda4b2a6440bce226098c9 100644 (file)
  *  Author: Simo Sorce
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 #if (_SAMBA_BUILD_ >= 4)
+#include "includes.h"
 #include "build.h"
 #include "dynconfig.h"
 #endif
index 077446f8ca1ce6fe7490888dde0dcb4980535e1a..1d02fb0f3ea55c95dda53b19805d2e28e6b0cf31 100644 (file)
@@ -32,8 +32,7 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 /*
   create a new ldb_message in a given memory context (NULL for top level)
index 26f88769e6936ed5b4dc04496df698f5d5960368..b0baaa2f7b8c8edf8fcf9e92c58e5d6bcb559cd8 100644 (file)
@@ -41,8 +41,7 @@
 
 */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 #include "system/locale.h"
 
 /*
index 99043ae2afef564ac948e04f42b8d8e64a95f817..832f91a6bae2534fa31d6930c4758bf9660919db 100644 (file)
@@ -32,8 +32,7 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 #include "system/locale.h"
 
 
index ef7be2c14ecb170bc5119ac4cb4b99a0829fafc8..5a83cdacc21f2639e774cd6d86634fb688eea0e9 100644 (file)
@@ -25,8 +25,7 @@
  * Simo Sorce <idra@samba.org>         2005
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 /* Byte-wise swap two items of size SIZE. */
 #define SWAP(a, b, size)                                                     \
index bb9a257fa044818dc7c4926315722e04f676900e..e73250d7a7a2cf530e981cf8bddf71989d196502 100644 (file)
@@ -2,6 +2,7 @@
 # Start MODULE ldb_asq
 [MODULE::ldb_asq]
 PRIVATE_DEPENDENCIES = LIBTALLOC
+CFLAGS = -Ilib/ldb/include
 INIT_FUNCTION = ldb_asq_init
 SUBSYSTEM = ldb
 OBJ_FILES = \
@@ -13,6 +14,7 @@ OBJ_FILES = \
 # Start MODULE ldb_server_sort
 [MODULE::ldb_server_sort]
 PRIVATE_DEPENDENCIES = LIBTALLOC
+CFLAGS = -Ilib/ldb/include
 INIT_FUNCTION = ldb_sort_init
 SUBSYSTEM = ldb
 OBJ_FILES = \
@@ -24,6 +26,7 @@ OBJ_FILES = \
 # Start MODULE ldb_paged_results
 [MODULE::ldb_paged_results]
 INIT_FUNCTION = ldb_paged_results_init
+CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
 SUBSYSTEM = ldb
 OBJ_FILES = \
@@ -35,6 +38,7 @@ OBJ_FILES = \
 # Start MODULE ldb_paged_results
 [MODULE::ldb_paged_searches]
 INIT_FUNCTION = ldb_paged_searches_init
+CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
 SUBSYSTEM = ldb
 OBJ_FILES = \
@@ -46,6 +50,7 @@ OBJ_FILES = \
 # Start MODULE ldb_operational
 [MODULE::ldb_operational]
 SUBSYSTEM = ldb
+CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_operational_init
 OBJ_FILES = \
@@ -57,6 +62,7 @@ OBJ_FILES = \
 # Start MODULE ldb_objectclass
 [MODULE::ldb_objectclass]
 INIT_FUNCTION = ldb_objectclass_init
+CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
 SUBSYSTEM = ldb
 OBJ_FILES = \
@@ -68,6 +74,7 @@ OBJ_FILES = \
 # Start MODULE ldb_rdn_name
 [MODULE::ldb_rdn_name]
 SUBSYSTEM = ldb
+CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_rdn_name_init
 OBJ_FILES = \
@@ -79,6 +86,7 @@ OBJ_FILES = \
 # Start MODULE ldb_ildap
 [MODULE::ldb_ildap]
 SUBSYSTEM = ldb
+CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC LIBCLI_LDAP
 INIT_FUNCTION = ldb_ildap_init
 ALIASES = ldapi ldaps ldap
@@ -91,6 +99,7 @@ OBJ_FILES = \
 # Start MODULE ldb_map
 [MODULE::ldb_map]
 PRIVATE_DEPENDENCIES = LIBTALLOC
+CFLAGS = -Ilib/ldb/include -Ilib/ldb/modules
 SUBSYSTEM = ldb
 OBJ_FILES = \
                modules/ldb_map_inbound.o \
@@ -103,6 +112,7 @@ OBJ_FILES = \
 # Start MODULE ldb_skel
 [MODULE::ldb_skel]
 SUBSYSTEM = ldb
+CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_skel_init
 OBJ_FILES = modules/skel.o
@@ -113,6 +123,7 @@ OBJ_FILES = modules/skel.o
 # Start MODULE ldb_sqlite3
 [MODULE::ldb_sqlite3]
 SUBSYSTEM = ldb
+CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC SQLITE3 LIBTALLOC
 INIT_FUNCTION = ldb_sqlite3_init
 OBJ_FILES = \
@@ -124,6 +135,7 @@ OBJ_FILES = \
 # Start MODULE ldb_tdb
 [MODULE::ldb_tdb]
 SUBSYSTEM = ldb
+CFLAGS = -Ilib/ldb/include -Ilib/ldb/ldb_tdb
 INIT_FUNCTION = ldb_tdb_init
 OBJ_FILES = \
                ldb_tdb/ldb_tdb.o \
@@ -139,13 +151,14 @@ PRIVATE_DEPENDENCIES = \
 
 ./lib/ldb/common/ldb_modules.o: lib/ldb/common/ldb_modules.c Makefile
        @echo Compiling $<
-       @$(CC) -Iinclude $(CFLAGS) -Ilib/replace -Ilib/talloc -Ilib/ldb $(PICFLAG) -DLDBMODULESDIR=\"$(MODULESDIR)/ldb\" -DSHLIBEXT=\"$(SHLIBEXT)\" -c $< -o $@
+       @$(CC) -Iinclude $(CFLAGS) -Ilib/replace -Ilib/talloc -Ilib/ldb/include $(PICFLAG) -DLDBMODULESDIR=\"$(MODULESDIR)/ldb\" -DSHLIBEXT=\"$(SHLIBEXT)\" -c $< -o $@
 
 ################################################
 # Start SUBSYSTEM ldb
 [LIBRARY::ldb]
 VERSION = 0.0.1
 SO_VERSION = 0
+CFLAGS = -Ilib/ldb/include
 DESCRIPTION = LDAP-like embedded database library
 INIT_FUNCTION_TYPE = int (*) (void)
 OBJ_FILES = \
@@ -177,6 +190,7 @@ PUBLIC_HEADERS = include/ldb.h include/ldb_errors.h
 # Start SUBSYSTEM LDBSAMBA
 [SUBSYSTEM::LDBSAMBA]
 PRIVATE_DEPENDENCIES = ldb
+CFLAGS = -Ilib/ldb/include
 PRIVATE_PROTO_HEADER = samba/ldif_handlers.h
 PRIVATE_DEPENDENCIES = LIBSECURITY SAMDB
 OBJ_FILES = \
index 207c6c3d4242f871cd3c671fc632647734644f6d..4fdc3ef92fee9aaa5ff56b4d3d3e71c610a52fdd 100644 (file)
@@ -31,9 +31,9 @@ It lists / dumps the records in a LDB database to standard output.
 
 */
 
-#include "includes.h"
-#include "ldb/include/ldb.h"
-#include "ldb/include/ldb_errors.h"
+#include "ldb_includes.h"
+#include "ldb.h"
+#include "ldb_errors.h"
 
 /*
   ldb_ldif_write takes a function pointer to a custom output
index 3b8591e73fe8967468e0fcc12653879713bb29f8..c392f311e5d6b0097c3a611a23ade0d3e4bd3f03 100644 (file)
@@ -31,9 +31,9 @@ It lists / dumps the entries in an LDIF file to standard output.
 
 */
 
-#include "includes.h"
-#include "ldb/include/ldb.h"
-#include "ldb/include/ldb_errors.h"
+#include "ldb_includes.h"
+#include "ldb.h"
+#include "ldb_errors.h"
 
 /*
   ldb_ldif_write takes a function pointer to a custom output
index f5642f83034196d85c437d48d9d1d03a02a4c14c..cf380303bc901ca8dcab842d81c4eecdee5a4c8d 100644 (file)
@@ -43,7 +43,7 @@
 
 
 #include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 #include "lib/events/events.h"
 #include "libcli/ldap/ldap.h"
index 20ad6c46c1d56b1b01690255d9445a90e569c561..44789b73f87b59a0d294b850ae94f4b1bd62da23 100644 (file)
@@ -39,8 +39,7 @@
  *    author: Simo Sorce
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 #define LDAP_DEPRECATED 1
 #include <ldap.h>
index 52e3d2f4e93b67d3faed575d87eb85d8f8e68a13..3600bae4ef7f9f65e8be456d8072e1992512dcf0 100644 (file)
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
-#include "ldb/ldb_tdb/ldb_tdb.h"
+#include "ldb_tdb.h"
 
 #define LTDB_FLAG_CASE_INSENSITIVE (1<<0)
 #define LTDB_FLAG_INTEGER          (1<<1)
index e3682afac7839227269eb86248b196840118c413..caa410775ca527fee117ee37f689766b37f5c1e2 100644 (file)
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
-#include "ldb/ldb_tdb/ldb_tdb.h"
+#include "ldb_tdb.h"
 
 /*
   find an element in a list, using the given comparison function and
index 6a00fb13c7543042abc51fc719de012f6d8926d8..563f687b603b37aa2f138cecef3163f82d8dfe36 100644 (file)
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
-
-#include "ldb/ldb_tdb/ldb_tdb.h"
+#include "ldb_includes.h"
+#include "ldb_tdb.h"
 
 /* change this if the data format ever changes */
 #define LTDB_PACKING_FORMAT 0x26011967
index 838f599642e63d2ab54e75f43011243b90f54b6f..419fa9d69ba2b66220997a208e832ad99881f380 100644 (file)
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
-#include "ldb/ldb_tdb/ldb_tdb.h"
+#include "ldb_tdb.h"
 
 /*
   add one element to a message
index 8a6d26ff9827c5063a95850e69a83eaacb8c8a3a..dee61308d31ba765674bdfa5107a9aea0049d3a0 100644 (file)
  *    Author: Simo Sorce
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
-#include "ldb/ldb_tdb/ldb_tdb.h"
+#include "ldb_tdb.h"
 
 
 /*
index c9eac013fcf0cb2a0fe817570b00f06564353fda..8c232175f47d7414ce74084025f3b004e7dae2f4 100644 (file)
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
-#include "ldb/ldb_tdb/ldb_tdb.h"
+#include "ldb_tdb.h"
 
 /*
   the purpose of this code is to work around the braindead posix locking
index 0c31727909e3a3cae0985238ff6348a4132cf448..f8438d98b8137fe20da618c538bef198ecf1d830 100644 (file)
@@ -33,8 +33,7 @@
  *  Author: Simo Sorce
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 struct asq_context {
 
index 6387ffc5b70a8af356c52bbec7226ce0c2cf73ec..0fccbba7028afe24b248f80080bb1da643b7dbea 100644 (file)
  *  Author: Jelmer Vernooij, Martin Kuehl
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
-#include "ldb/modules/ldb_map.h"
-#include "ldb/modules/ldb_map_private.h"
+#include "ldb_map.h"
+#include "ldb_map_private.h"
+
+#ifndef _PUBLIC_
+#define _PUBLIC_
+#endif
 
 /* Description of the provided ldb requests:
  - special attribute 'isMapped'
@@ -170,15 +173,15 @@ struct ldb_handle *map_init_handle(struct ldb_request *req, struct ldb_module *m
  * ========================================= */
 
 /* Check whether any data should be stored in the local partition. */
-BOOL map_check_local_db(struct ldb_module *module)
+bool map_check_local_db(struct ldb_module *module)
 {
        const struct ldb_map_context *data = map_get_context(module);
 
        if (!data->remote_base_dn || !data->local_base_dn) {
-               return False;
+               return false;
        }
 
-       return True;
+       return true;
 }
 
 /* Copy a DN with the base DN of the local partition. */
@@ -386,18 +389,18 @@ const struct ldb_map_attribute *map_attr_find_remote(const struct ldb_map_contex
  * ================== */
 
 /* Check whether an attribute will be mapped into the remote partition. */
-BOOL map_attr_check_remote(const struct ldb_map_context *data, const char *attr)
+bool map_attr_check_remote(const struct ldb_map_context *data, const char *attr)
 {
        const struct ldb_map_attribute *map = map_attr_find_local(data, attr);
 
        if (map == NULL) {
-               return False;
+               return false;
        }
        if (map->type == MAP_IGNORE) {
-               return False;
+               return false;
        }
 
-       return True;
+       return true;
 }
 
 /* Map an attribute name into the remote partition. */
@@ -489,12 +492,12 @@ struct ldb_val ldb_val_map_remote(struct ldb_module *module, void *mem_ctx,
  * =========== */
 
 /* Check whether a DN is below the local baseDN. */
-BOOL ldb_dn_check_local(struct ldb_module *module, struct ldb_dn *dn)
+bool ldb_dn_check_local(struct ldb_module *module, struct ldb_dn *dn)
 {
        const struct ldb_map_context *data = map_get_context(module);
 
        if (!data->local_base_dn) {
-               return True;
+               return true;
        }
 
        return ldb_dn_compare_base(data->local_base_dn, dn) == 0;
@@ -736,7 +739,7 @@ static void map_objectclass_generate_remote(struct ldb_module *module, const cha
 {
        struct ldb_message_element *el, *oc;
        struct ldb_val val;
-       BOOL found_extensibleObject = False;
+       bool found_extensibleObject = false;
        int i;
 
        /* Find old local objectClass */
@@ -768,7 +771,7 @@ static void map_objectclass_generate_remote(struct ldb_module *module, const cha
        for (i = 0; i < el->num_values - 1; i++) {
                el->values[i] = map_objectclass_convert_local(module, el->values, &oc->values[i]);
                if (ldb_attr_cmp((char *)el->values[i].data, "extensibleObject") == 0) {
-                       found_extensibleObject = True;
+                       found_extensibleObject = true;
                }
        }
 
index 7e5583c9e254da604e95803f8e3b60cd93171786..9cc1b4e89f406a31ab257576109ab3687e088785 100644 (file)
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
-#include "ldb/modules/ldb_map.h"
-#include "ldb/modules/ldb_map_private.h"
+#include "ldb_map.h"
+#include "ldb_map_private.h"
 
 
 /* Mapping message elements
@@ -137,10 +136,10 @@ local:
  * ================ */
 
 /* Check whether a message will be (partially) mapped into the remote partition. */
-static BOOL ldb_msg_check_remote(struct ldb_module *module, const struct ldb_message *msg)
+static bool ldb_msg_check_remote(struct ldb_module *module, const struct ldb_message *msg)
 {
        const struct ldb_map_context *data = map_get_context(module);
-       BOOL ret;
+       bool ret;
        int i;
 
        for (i = 0; i < msg->num_elements; i++) {
@@ -150,7 +149,7 @@ static BOOL ldb_msg_check_remote(struct ldb_module *module, const struct ldb_mes
                }
        }
 
-       return False;
+       return false;
 }
 
 /* Split message elements that stay in the local partition from those
index 615cdc40ca44eea44cdae7a453ffc0f0da334818..1ef1b36b203d780813a789c0893f2225adb0256e 100644 (file)
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
-#include "ldb/modules/ldb_map.h"
-#include "ldb/modules/ldb_map_private.h"
+#include "ldb_map.h"
+#include "ldb_map_private.h"
 
 
 /* Mapping attributes
@@ -488,10 +487,10 @@ static int map_reply_remote(struct map_context *ac, struct ldb_reply *ares)
  * =================== */
 
 /* Check whether a parse tree can safely be split in two. */
-static BOOL ldb_parse_tree_check_splittable(const struct ldb_parse_tree *tree)
+static bool ldb_parse_tree_check_splittable(const struct ldb_parse_tree *tree)
 {
        const struct ldb_parse_tree *subtree = tree;
-       BOOL negate = False;
+       bool negate = false;
 
        while (subtree) {
                switch (subtree->operation) {
@@ -507,11 +506,11 @@ static BOOL ldb_parse_tree_check_splittable(const struct ldb_parse_tree *tree)
                        return negate;  /* if negate: True */
 
                default:
-                       return True;    /* simple parse tree */
+                       return true;    /* simple parse tree */
                }
        }
 
-       return True;                    /* no parse tree */
+       return true;                    /* no parse tree */
 }
 
 /* Collect a list of attributes required to match a given parse tree. */
index 1f4fecee8b300ecf9c3ab4a54d7beb4ed6c68b4d..2c35097069877b679d096f778e99a9a916b35caa 100644 (file)
@@ -68,9 +68,9 @@ struct ldb_handle *map_init_handle(struct ldb_request *req, struct ldb_module *m
 
 int ldb_next_remote_request(struct ldb_module *module, struct ldb_request *request);
 
-BOOL map_check_local_db(struct ldb_module *module);
-BOOL map_attr_check_remote(const struct ldb_map_context *data, const char *attr);
-BOOL ldb_dn_check_local(struct ldb_module *module, struct ldb_dn *dn);
+bool map_check_local_db(struct ldb_module *module);
+bool map_attr_check_remote(const struct ldb_map_context *data, const char *attr);
+bool ldb_dn_check_local(struct ldb_module *module, struct ldb_dn *dn);
 
 const struct ldb_map_attribute *map_attr_find_local(const struct ldb_map_context *data, const char *name);
 const struct ldb_map_attribute *map_attr_find_remote(const struct ldb_map_context *data, const char *name);
index 191238f9c95ca61388a5d6e1cdcb930d9cc3438c..1690af644cc67d9c79c971accba83c7e135c422d 100644 (file)
@@ -33,8 +33,7 @@
  *  Author: Andrew Bartlett
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 struct oc_context {
 
index 4fa572501f76d20fdcd0c6e448ba7cfee90bbc0e..96590a49a921d56c036f3e9627c50deb0caa56cd 100644 (file)
@@ -74,8 +74,7 @@
   modifiersName: not supported by w2k3?
 */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 /*
   construct a canonical name from a message
index 8ad1f01c8c07bb6486b29b0131cb4b386cc11886..2f54d9bf8c0fd983f7ad3d663a452376bba3c1c4 100644 (file)
@@ -33,8 +33,7 @@
  *  Author: Simo Sorce
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 struct message_store {
        /* keep the whole ldb_reply as an optimization
index 02d85e4c23066190ebd339ffe7abebf05c8a7f38..f4a06e841f037605f363c3854ab1d8c513d5c3c3 100644 (file)
@@ -34,7 +34,7 @@
  */
 
 #include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 #define PS_DEFAULT_PAGE_SIZE 500
 /* 500 objects per query seem to be a decent compromise
index cb5add28759ef4f9fff534a3f1ab0aa673c9bbb6..322f05c00eeb1df2e55a114540ae01c2a0068c1b 100644 (file)
@@ -37,8 +37,7 @@
  *      Simo Sorce Mar 2006
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 static struct ldb_message_element *rdn_name_find_attribute(const struct ldb_message *msg, const char *name)
 {
index 8622a226383a0b14adec033ac494ed854d4620e8..3496142419e4609e5e4070b8c5a1536840551cb4 100644 (file)
@@ -32,8 +32,7 @@
  *  Author: Simo Sorce
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 struct private_data {
 
index f8ee788d6c58604f67ab9200931061c31955e6b8..dcd979fd20f685f5cd68264228a9d7b067f8563f 100644 (file)
@@ -32,8 +32,7 @@
  *  Author: Simo Sorce
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 struct opaque {
        struct ldb_context *ldb;
index 961312afb66264b39492ea344624a4ef30644e81..5535c3caa2f2e4ec0f0131dea9e92ea0858e5eb1 100644 (file)
@@ -23,8 +23,8 @@
 */
 
 #include "includes.h"
-#include "ldb/include/includes.h"
-#include "ldb/include/ldb_handlers.h"
+#include "ldb_includes.h"
+#include "ldb_handlers.h"
 
 #include "librpc/gen_ndr/ndr_security.h"
 #include "librpc/gen_ndr/ndr_misc.h"
index ed1330debcae8efbd6317dd4e47b32508a1b9e2d..5ebb71bf01e5ff38eb91f547b7201f1fb1bd95e4 100644 (file)
@@ -23,8 +23,7 @@
 */
 
 #include "convert.h"
-#include "includes.h"
-#include "ldb/include/includes.h"
+#include "ldb_includes.h"
 
 /* Shared map for converting syntax between formats */
 static const struct syntax_map syntax_map[] = {
index c6c691d875274606c59ddf7ed5ceb4a4a9317cc8..187a0de7afafe730df1033667a5e974634dd03ca 100644 (file)
@@ -32,9 +32,8 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
-#include "ldb/tools/cmdline.h"
+#include "ldb_includes.h"
+#include "tools/cmdline.h"
 
 static int ldb_delete_recursive(struct ldb_context *ldb, struct ldb_dn *dn)
 {
index 2edbe34b6f27e68679f427f74ce76270c092edc0..80ffbb59157fc92283e0b3fc6e125bca0fe22a04 100644 (file)
@@ -32,9 +32,8 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
-#include "ldb/tools/cmdline.h"
+#include "ldb_includes.h"
+#include "tools/cmdline.h"
 
 static struct ldb_cmdline *options;
 
index cc7219a1564191bc2ed125f76e35a2a241355743..66ed3c8b5fb171caf7ae4b8f6e3a5bba87c81ae5 100644 (file)
@@ -32,9 +32,8 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
-#include "ldb/tools/cmdline.h"
+#include "ldb_includes.h"
+#include "tools/cmdline.h"
 
 static int failures;
 
index d7e1347fea7d5b0b8d48e0564908af31b60bfb71..d2d285449dd3f46a2ddbe5025e088613fd39eb3b 100644 (file)
@@ -34,9 +34,8 @@
  *  Author: Stefan Metzmacher
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
-#include "ldb/tools/cmdline.h"
+#include "ldb_includes.h"
+#include "tools/cmdline.h"
 
 static void usage(void)
 {
index e5b9091b5cc806b4f3e4e35afda35d687b2454aa..d492f98d449a261b55caac2a6ec7fe1ec34c3085 100644 (file)
@@ -32,9 +32,8 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
-#include "ldb/tools/cmdline.h"
+#include "ldb_includes.h"
+#include "tools/cmdline.h"
 
 static void usage(void)
 {
index fbabd5687837f2030ff70a9c47600e5eb5e7667c..d7714acb9004f26e6819534e0fff8925df5ceeb9 100644 (file)
@@ -32,9 +32,8 @@
  *  Author: Andrew Tridgell
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
-#include "ldb/tools/cmdline.h"
+#include "ldb_includes.h"
+#include "tools/cmdline.h"
 
 static struct timeval tp1,tp2;
 static struct ldb_cmdline *options;
index 7863f5dcb77982c9a7db6b23b5b16bc6ec86d35d..e14f3624ee7b1f1c15d763679ced7a71058b592d 100644 (file)
  *  Author: Simo Sorce
  */
 
-#include "includes.h"
-#include "ldb/include/includes.h"
-#include "ldb/tools/cmdline.h"
-#include "ldb/tools/convert.h"
+#include "ldb_includes.h"
+#include "tools/cmdline.h"
+#include "tools/convert.h"
 
 #define SCHEMA_UNKNOWN 0
 #define SCHEMA_NAME 1