r22762: Some ldb_map changes:
authorJelmer Vernooij <jelmer@samba.org>
Tue, 8 May 2007 21:17:58 +0000 (21:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:15 +0000 (14:52 -0500)
* Change license to LGPL, so it can be used by non-Samba users of
LDB (cleared with Martin as well).

* Include ldb_map in standalone build.

* Move ldb_map to its own directory
(This used to be commit a90202abca26c0da5425a2f3dd8494077c3290fd)

16 files changed:
source4/dsdb/samdb/ldb_modules/config.mk
source4/kdc/config.mk
source4/lib/basic.mk
source4/lib/ldb/Makefile.in
source4/lib/ldb/config.mk
source4/lib/ldb/ldb_map/ldb_map.c [moved from source4/lib/ldb/modules/ldb_map.c with 97% similarity]
source4/lib/ldb/ldb_map/ldb_map.h [moved from source4/lib/ldb/modules/ldb_map.h with 86% similarity]
source4/lib/ldb/ldb_map/ldb_map_inbound.c [moved from source4/lib/ldb/modules/ldb_map_inbound.c with 96% similarity]
source4/lib/ldb/ldb_map/ldb_map_outbound.c [moved from source4/lib/ldb/modules/ldb_map_outbound.c with 97% similarity]
source4/lib/ldb/ldb_map/ldb_map_private.h [moved from source4/lib/ldb/modules/ldb_map_private.h with 100% similarity]
source4/lib/ldb/samba/config.mk [new file with mode: 0644]
source4/lib/registry/config.mk
source4/libcli/config.mk
source4/nbt_server/config.mk
source4/ntptr/config.mk
source4/param/config.mk

index 52945499ee3249953b67b7ad8096ff84efa7b5d5..f49753586e12152343eeda2d829ab6e7f5826d0e 100644 (file)
@@ -1,7 +1,7 @@
 ################################################
 # Start MODULE ldb_objectguid
 [MODULE::ldb_objectguid]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = LIBTALLOC LIBNDR NDR_MISC
 INIT_FUNCTION = objectguid_module_init
 OBJ_FILES = \
@@ -12,7 +12,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_repl_mata_data
 [MODULE::ldb_repl_meta_data]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = SAMDB LIBTALLOC LIBNDR NDR_MISC NDR_DRSUAPI NDR_DRSBLOBS
 INIT_FUNCTION = repl_meta_data_module_init
 OBJ_FILES = \
@@ -23,7 +23,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_dsdb_cache
 [MODULE::ldb_dsdb_cache]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = SAMDB LIBTALLOC
 INIT_FUNCTION = dsdb_cache_module_init
 OBJ_FILES = \
@@ -34,7 +34,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_schema_fsmo
 [MODULE::ldb_schema_fsmo]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = SAMDB LIBTALLOC
 INIT_FUNCTION = schema_fsmo_module_init
 OBJ_FILES = \
@@ -45,7 +45,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_naming_fsmo
 [MODULE::ldb_naming_fsmo]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = SAMDB LIBTALLOC
 INIT_FUNCTION = naming_fsmo_module_init
 OBJ_FILES = \
@@ -56,7 +56,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_pdc_fsmo
 [MODULE::ldb_pdc_fsmo]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = SAMDB LIBTALLOC
 INIT_FUNCTION = pdc_fsmo_module_init
 OBJ_FILES = \
@@ -67,7 +67,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_samldb
 [MODULE::ldb_samldb]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = samldb_module_init
 OBJ_FILES = \
@@ -79,7 +79,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_samba3sam
 [MODULE::ldb_samba3sam]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 INIT_FUNCTION = ldb_samba3sam_module_init
 PRIVATE_DEPENDENCIES = LIBTALLOC ldb_map SMBPASSWD
 OBJ_FILES = \
@@ -91,7 +91,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_entryUUID
 [MODULE::ldb_entryUUID]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 INIT_FUNCTION = ldb_entryUUID_module_init
 PRIVATE_DEPENDENCIES = LIBTALLOC
 ENABLE = YES
@@ -104,7 +104,7 @@ OBJ_FILES = \
 # ################################################
 # # Start MODULE ldb_proxy
 # [MODULE::ldb_proxy]
-# SUBSYSTEM = ldb
+# SUBSYSTEM = LIBLDB
 # INIT_FUNCTION = proxy_module_init
 # OBJ_FILES = \
 #              proxy.o
@@ -116,7 +116,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_rootdse
 [MODULE::ldb_rootdse]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = rootdse_module_init
 OBJ_FILES = \
@@ -128,7 +128,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_password_hash
 [MODULE::ldb_password_hash]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 INIT_FUNCTION = password_hash_module_init
 OBJ_FILES = password_hash.o
 PRIVATE_DEPENDENCIES = HEIMDAL_HDB_KEYS LIBTALLOC HEIMDAL_KRB5
@@ -140,7 +140,7 @@ PRIVATE_DEPENDENCIES = HEIMDAL_HDB_KEYS LIBTALLOC HEIMDAL_KRB5
 # Start MODULE ldb_local_password
 [MODULE::ldb_local_password]
 PRIVATE_DEPENDENCIES = LIBTALLOC
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 INIT_FUNCTION = local_password_module_init
 OBJ_FILES = local_password.o
 #
@@ -151,7 +151,7 @@ OBJ_FILES = local_password.o
 # Start MODULE ldb_kludge_acl
 [MODULE::ldb_kludge_acl]
 PRIVATE_DEPENDENCIES = LIBTALLOC LIBSECURITY
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 INIT_FUNCTION = ldb_kludge_acl_init
 OBJ_FILES = \
                kludge_acl.o
@@ -162,7 +162,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_extended_dn
 [MODULE::ldb_extended_dn]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_extended_dn_init
 OBJ_FILES = \
@@ -174,7 +174,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_show_deleted
 [MODULE::ldb_show_deleted]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_show_deleted_init
 OBJ_FILES = \
@@ -186,7 +186,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_partition
 [MODULE::ldb_partition]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_partition_init
 OBJ_FILES = \
@@ -198,7 +198,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_schema
 [MODULE::ldb_schema]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_schema_init
 OBJ_FILES = \
@@ -210,7 +210,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_update_kt
 [MODULE::ldb_update_kt]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 PRIVATE_DEPENDENCIES = LIBTALLOC CREDENTIALS_KRB5
 #Also depends on credentials, but that would loop
 INIT_FUNCTION = ldb_update_kt_init
index 1e860d27b794f2d153d8dddeb692c099b691c2b4..d129332ba274a7c8a21370d5929fca258ea4a5b0 100644 (file)
@@ -9,7 +9,7 @@ OBJ_FILES = \
                kdc.o \
                kpasswdd.o
 PRIVATE_DEPENDENCIES = \
-               ldb KERBEROS_LIB HEIMDAL_KDC HEIMDAL_HDB SAMDB
+               LIBLDB KERBEROS_LIB HEIMDAL_KDC HEIMDAL_HDB SAMDB
 # End SUBSYSTEM KDC
 #######################
 
@@ -22,7 +22,7 @@ OBJ_FILES = \
                hdb-ldb.o \
                pac-glue.o 
 PRIVATE_DEPENDENCIES = \
-               ldb auth_sam KERBEROS
+               LIBLDB auth_sam KERBEROS
 # End SUBSYSTEM KDC
 #######################
 
index 813ddf649d4aff7986f53386715b4c08b38d31c6..823057fbc70f4d74b7dc00705050c87e2914c90f 100644 (file)
@@ -43,5 +43,5 @@ OBJ_FILES = gencache/gencache.o \
 PUBLIC_PROTO_HEADER = db_wrap_proto.h
 PUBLIC_HEADERS = db_wrap.h
 OBJ_FILES = db_wrap.o gendb.o
-PUBLIC_DEPENDENCIES = LIBTDB ldb
+PUBLIC_DEPENDENCIES = LIBTDB LIBLDB
 PRIVATE_DEPENDENCIES = LDBSAMBA
index 2ce27338a23b17cd129ad58b56b9811a208bd07b..398efc9fe82e6b1ed1b26c027f6f685eee1095f1 100644 (file)
@@ -41,6 +41,10 @@ LDB_TDB_OBJ=$(LDB_TDB_DIR)/ldb_tdb.o \
        $(LDB_TDB_DIR)/ldb_pack.o $(LDB_TDB_DIR)/ldb_search.o $(LDB_TDB_DIR)/ldb_index.o \
        $(LDB_TDB_DIR)/ldb_cache.o $(LDB_TDB_DIR)/ldb_tdb_wrap.o
 
+LDB_MAP_DIR=ldb_map
+LDB_MAP_OBJ=$(LDB_MAP_DIR)/ldb_map.o $(LDB_MAP_DIR)/ldb_map_inbound.o \
+           $(LDB_MAP_DIR)/ldb_map_outbound.o
+
 COMDIR=common
 COMMON_OBJ=$(COMDIR)/ldb.o $(COMDIR)/ldb_ldif.o \
           $(COMDIR)/ldb_parse.o $(COMDIR)/ldb_msg.o $(COMDIR)/ldb_utf8.o \
@@ -57,7 +61,7 @@ NSSDIR=nssldb
 NSS_OBJ= $(NSSDIR)/ldb-nss.o $(NSSDIR)/ldb-pwd.o $(NSSDIR)/ldb-grp.o
 NSS_LIB = lib/libnss_ldb.so.2
 
-OBJS = $(MODULES_OBJ) $(COMMON_OBJ) $(LDB_TDB_OBJ) $(TDB_OBJ) $(TALLOC_OBJ) $(POPT_OBJ) @LIBREPLACEOBJ@ $(EXTRA_OBJ) 
+OBJS = $(MODULES_OBJ) $(COMMON_OBJ) $(LDB_TDB_OBJ) $(TDB_OBJ) $(TALLOC_OBJ) $(POPT_OBJ) $(LDB_MAP_OBJ) @LIBREPLACEOBJ@ $(EXTRA_OBJ) 
 
 LDB_LIB = lib/libldb.a
 
index adf12f5418d24b432cefd083fb335aca3656632e..e60f51f2d500d9e8929e5eafb6867eb0d9dcae45 100644 (file)
@@ -4,7 +4,7 @@
 PRIVATE_DEPENDENCIES = LIBTALLOC
 CFLAGS = -Ilib/ldb/include
 INIT_FUNCTION = ldb_asq_init
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 OBJ_FILES = \
                modules/asq.o
 # End MODULE ldb_asq
@@ -16,7 +16,7 @@ OBJ_FILES = \
 PRIVATE_DEPENDENCIES = LIBTALLOC
 CFLAGS = -Ilib/ldb/include
 INIT_FUNCTION = ldb_sort_init
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 OBJ_FILES = \
                modules/sort.o
 # End MODULE ldb_sort
@@ -28,7 +28,7 @@ OBJ_FILES = \
 INIT_FUNCTION = ldb_paged_results_init
 CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 OBJ_FILES = \
                modules/paged_results.o
 # End MODULE ldb_paged_results
@@ -40,7 +40,7 @@ OBJ_FILES = \
 INIT_FUNCTION = ldb_paged_searches_init
 CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 OBJ_FILES = \
                modules/paged_searches.o
 # End MODULE ldb_paged_results
@@ -49,7 +49,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_operational
 [MODULE::ldb_operational]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_operational_init
@@ -64,7 +64,7 @@ OBJ_FILES = \
 INIT_FUNCTION = ldb_objectclass_init
 CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 OBJ_FILES = \
                modules/objectclass.o
 # End MODULE ldb_objectclass
@@ -73,7 +73,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_rdn_name
 [MODULE::ldb_rdn_name]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_rdn_name_init
@@ -85,7 +85,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_ildap
 [MODULE::ldb_ildap]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC LIBCLI_LDAP
 INIT_FUNCTION = ldb_ildap_init
@@ -99,19 +99,19 @@ OBJ_FILES = \
 # Start MODULE ldb_map
 [MODULE::ldb_map]
 PRIVATE_DEPENDENCIES = LIBTALLOC
-CFLAGS = -Ilib/ldb/include -Ilib/ldb/modules
-SUBSYSTEM = ldb
+CFLAGS = -Ilib/ldb/include -Ilib/ldb/ldb_map
+SUBSYSTEM = LIBLDB
 OBJ_FILES = \
-               modules/ldb_map_inbound.o \
-               modules/ldb_map_outbound.o \
-               modules/ldb_map.o
+               ldb_map/ldb_map_inbound.o \
+               ldb_map/ldb_map_outbound.o \
+               ldb_map/ldb_map.o
 # End MODULE ldb_map
 ################################################
 
 ################################################
 # Start MODULE ldb_skel
 [MODULE::ldb_skel]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC
 INIT_FUNCTION = ldb_skel_init
@@ -122,7 +122,7 @@ OBJ_FILES = modules/skel.o
 ################################################
 # Start MODULE ldb_sqlite3
 [MODULE::ldb_sqlite3]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 CFLAGS = -Ilib/ldb/include
 PRIVATE_DEPENDENCIES = LIBTALLOC SQLITE3 LIBTALLOC
 INIT_FUNCTION = ldb_sqlite3_init
@@ -134,7 +134,7 @@ OBJ_FILES = \
 ################################################
 # Start MODULE ldb_tdb
 [MODULE::ldb_tdb]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 CFLAGS = -Ilib/ldb/include -Ilib/ldb/ldb_tdb
 INIT_FUNCTION = ldb_tdb_init
 OBJ_FILES = \
@@ -155,7 +155,7 @@ PRIVATE_DEPENDENCIES = \
 
 ################################################
 # Start SUBSYSTEM ldb
-[LIBRARY::ldb]
+[LIBRARY::LIBLDB]
 VERSION = 0.0.1
 SO_VERSION = 0
 CFLAGS = -Ilib/ldb/include
@@ -186,24 +186,13 @@ PUBLIC_HEADERS = include/ldb.h include/ldb_errors.h
 # End SUBSYSTEM ldb
 ################################################
 
-################################################
-# Start SUBSYSTEM LDBSAMBA
-[SUBSYSTEM::LDBSAMBA]
-PUBLIC_DEPENDENCIES = ldb
-PRIVATE_PROTO_HEADER = samba/ldif_handlers.h
-PRIVATE_DEPENDENCIES = LIBSECURITY SAMDB
-OBJ_FILES = \
-               samba/ldif_handlers.o
-# End SUBSYSTEM LDBSAMBA
-################################################
-
 ################################################
 # Start SUBSYSTEM LIBLDB_CMDLINE
 [SUBSYSTEM::LIBLDB_CMDLINE]
 CFLAGS = -Ilib/ldb
 OBJ_FILES= \
                tools/cmdline.o
-PUBLIC_DEPENDENCIES = ldb LIBPOPT
+PUBLIC_DEPENDENCIES = LIBLDB LIBPOPT
 PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL POPT_SAMBA POPT_CREDENTIALS gensec
 # End SUBSYSTEM LIBLDB_CMDLINE
 ################################################
@@ -319,8 +308,10 @@ PRIVATE_DEPENDENCIES = \
 #######################
 # Start LIBRARY swig_ldb
 [LIBRARY::swig_ldb]
-PUBLIC_DEPENDENCIES = ldb DYNCONFIG
+PUBLIC_DEPENDENCIES = LIBLDB DYNCONFIG
 LIBRARY_REALNAME = swig/_ldb.$(SHLIBEXT)
 OBJ_FILES = swig/ldb_wrap.o
 # End LIBRARY swig_ldb
 #######################
+
+include samba/config.mk
similarity index 97%
rename from source4/lib/ldb/modules/ldb_map.c
rename to source4/lib/ldb/ldb_map/ldb_map.c
index 0fccbba7028afe24b248f80080bb1da643b7dbea..64484220b50f4b4a07e68d157bdc1f4be0265cd2 100644 (file)
@@ -4,23 +4,24 @@
    Copyright (C) Jelmer Vernooij 2005
    Copyright (C) Martin Kuehl <mkhl@samba.org> 2006
 
-   * NOTICE: this module is NOT released under the GNU LGPL license as
-   * other ldb code. This module is release under the GNU GPL v2 or
-   * later license.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
+     ** NOTE! The following LGPL license applies to the ldb
+     ** library. This does NOT imply that all of Samba is released
+     ** under the LGPL
    
-   This program is distributed in the hope that it will be useful,
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+
+   This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-   
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 */
 
 /* 
similarity index 86%
rename from source4/lib/ldb/modules/ldb_map.h
rename to source4/lib/ldb/ldb_map/ldb_map.h
index e8de2e3698df5bd2024046dad859d57658014ce4..f2f4e804675c17a09071e2bd75bc227e42a49648 100644 (file)
@@ -4,23 +4,24 @@
    Copyright (C) Jelmer Vernooij 2005
    Copyright (C) Martin Kuehl <mkhl@samba.org> 2006
 
-   * NOTICE: this module is NOT released under the GNU LGPL license as
-   * other ldb code. This module is release under the GNU GPL v2 or
-   * later license.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
+     ** NOTE! The following LGPL license applies to the ldb
+     ** library. This does NOT imply that all of Samba is released
+     ** under the LGPL
    
-   This program is distributed in the hope that it will be useful,
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+
+   This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-   
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 */
 
 #ifndef __LDB_MAP_H__
similarity index 96%
rename from source4/lib/ldb/modules/ldb_map_inbound.c
rename to source4/lib/ldb/ldb_map/ldb_map_inbound.c
index 9cc1b4e89f406a31ab257576109ab3687e088785..bb1e0cca36b0644d5304daab7a0a1d914bd23820 100644 (file)
@@ -4,23 +4,24 @@
    Copyright (C) Jelmer Vernooij 2005
    Copyright (C) Martin Kuehl <mkhl@samba.org> 2006
 
-   * NOTICE: this module is NOT released under the GNU LGPL license as
-   * other ldb code. This module is release under the GNU GPL v2 or
-   * later license.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
+     ** NOTE! The following LGPL license applies to the ldb
+     ** library. This does NOT imply that all of Samba is released
+     ** under the LGPL
    
-   This program is distributed in the hope that it will be useful,
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+
+   This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-   
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 */
 
 #include "ldb_includes.h"
similarity index 97%
rename from source4/lib/ldb/modules/ldb_map_outbound.c
rename to source4/lib/ldb/ldb_map/ldb_map_outbound.c
index 1ef1b36b203d780813a789c0893f2225adb0256e..ae36367111e74b317ef88127d0978e23b22e5979 100644 (file)
@@ -5,23 +5,24 @@
    Copyright (C) Martin Kuehl <mkhl@samba.org> 2006
    Copyright (C) Andrew Bartlett <abartlet@samba.org> 2006
 
-   * NOTICE: this module is NOT released under the GNU LGPL license as
-   * other ldb code. This module is release under the GNU GPL v2 or
-   * later license.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
+     ** NOTE! The following LGPL license applies to the ldb
+     ** library. This does NOT imply that all of Samba is released
+     ** under the LGPL
    
-   This program is distributed in the hope that it will be useful,
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+
+   This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-   
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 */
 
 #include "ldb_includes.h"
diff --git a/source4/lib/ldb/samba/config.mk b/source4/lib/ldb/samba/config.mk
new file mode 100644 (file)
index 0000000..d29b3f3
--- /dev/null
@@ -0,0 +1,12 @@
+################################################
+# Start SUBSYSTEM LDBSAMBA
+[SUBSYSTEM::LDBSAMBA]
+PUBLIC_DEPENDENCIES = LIBLDB
+PRIVATE_PROTO_HEADER = ldif_handlers.h
+PRIVATE_DEPENDENCIES = LIBSECURITY SAMDB
+OBJ_FILES = \
+               ldif_handlers.o
+# End SUBSYSTEM LDBSAMBA
+################################################
+
+
index 4f44c3ca1fcf0d87a3a142d04b38682a954b7199..cea37e7e2f1cf758e80fdaee4cb0478c7d47e738 100644 (file)
@@ -68,7 +68,7 @@ SUBSYSTEM = registry
 OBJ_FILES = \
                reg_backend_ldb.o
 PRIVATE_DEPENDENCIES = \
-               ldb
+               LIBLDB  
 # End MODULE registry_ldb
 ################################################
 
index 6aba69c2afe13cfe5242c0f1b02f9d926839a309..74af8185e6f974f90d3e58e742564191a0da5f57 100644 (file)
@@ -77,7 +77,7 @@ DESCRIPTION = CLDAP client library
 OBJ_FILES = cldap/cldap.o
 PUBLIC_HEADERS = cldap/cldap.h
 PUBLIC_DEPENDENCIES = LIBCLI_LDAP
-PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL ldb
+PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL LIBLDB
 
 [LIBRARY::LIBCLI_WREPL]
 PRIVATE_PROTO_HEADER = wrepl/winsrepl_proto.h
index 6c5413437834bc51fc00e71e62c85bcc31e30359..5e8cfa61dae9d92e5d7d854bcc70bb0bc9d23aea 100644 (file)
@@ -8,14 +8,14 @@ OBJ_FILES = \
                wins/wins_hook.o
 PRIVATE_PROTO_HEADER = wins/winsdb_proto.h
 PUBLIC_DEPENDENCIES = \
-               ldb
+               LIBLDB
 # End SUBSYSTEM WINSDB
 #######################
 
 #######################
 # Start MODULE ldb_wins_ldb
 [MODULE::ldb_wins_ldb]
-SUBSYSTEM = ldb
+SUBSYSTEM = LIBLDB
 INIT_FUNCTION = wins_ldb_module_init
 OBJ_FILES = \
                wins/wins_ldb.o
index c47ccac75528e1176710244d35c757a09c003220..38a582291f307aef144dbbac20aa4c36939aa945 100644 (file)
@@ -8,7 +8,7 @@ SUBSYSTEM = ntptr
 OBJ_FILES = \
                simple_ldb/ntptr_simple_ldb.o
 PRIVATE_DEPENDENCIES = \
-               ldb NDR_SPOOLSS DCERPC_COMMON
+               LIBLDB NDR_SPOOLSS DCERPC_COMMON
 # End MODULE ntptr_simple_ldb
 ################################################
 
index e035437adea9746c803b99836aa64fad30169f54..cac95a63ddb8461fc9f1cd2625cd3a00f282c297 100644 (file)
@@ -41,7 +41,7 @@ PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL
 SUBSYSTEM = share
 INIT_FUNCTION = share_ldb_init
 OBJ_FILES = share_ldb.o 
-PRIVATE_DEPENDENCIES = ldb
+PRIVATE_DEPENDENCIES = LIBLDB
 # End MODULE share_ldb
 ################################################