r18870: - enable the ldb ldap backend properly based on configure tests for
authorAndrew Tridgell <tridge@samba.org>
Sun, 24 Sep 2006 07:11:34 +0000 (07:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:14:40 +0000 (12:14 -0500)
  ldap

- use ldb_global_init() instead of the backend specific
  ldb_tdb_init().
(This used to be commit a6c53e58616d7731a1df9af33f78ccf0c774296e)

source3/Makefile.in
source3/configure.in
source3/groupdb/mapping_ldb.c

index cc2c355f1c0134617b284b6da7479cf1952a8b0c..f33b80e0795cff6aeb808c194ce04b4bf999114f 100644 (file)
@@ -789,8 +789,8 @@ LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/schema.o lib/ldb/m
           lib/ldb/modules/objectclass.o \
           lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
 
-# disabled until build issues sorted out
-# LDB_LDAP_OBJ=lib/ldb/ldb_ldap/ldb_ldap.o
+# enabled in configure.in
+LDB_LDAP_OBJ=@LDBLDAP@
 
 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
 
index 53b78e9e0eb5e2c1095884f06b22a6eb5940c8ac..d88d491b8661ec21f977b784be6af608cf4a45f9 100644 (file)
@@ -3042,6 +3042,9 @@ SMBLDAP=""
 AC_SUBST(SMBLDAP)
 SMBLDAPUTIL=""
 AC_SUBST(SMBLDAPUTIL)
+LDBLDAP=""
+AC_SUBST(LDBLDAP)
+
 if test x"$with_ldap_support" != x"no"; then
 
   ##################################################################
@@ -3111,6 +3114,7 @@ if test x"$with_ldap_support" != x"no"; then
     default_shared_modules="$default_shared_modules";
     SMBLDAP="lib/smbldap.o"
     SMBLDAPUTIL="lib/smbldap_util.o"
+    LDBLDAP="lib/ldb/ldb_ldap/ldb_ldap.o"
     with_ldap_support=yes
     AC_MSG_CHECKING(whether LDAP support is used)
     AC_MSG_RESULT(yes)
index 6368e41a060f63d4b2ccacbddd85a61f5d1c0d46..bfff98e87f4083c1138eddf45b80c1d8f4514f00 100644 (file)
@@ -53,8 +53,8 @@ static BOOL mapping_upgrade(const char *tdb_path);
                return True;
        }
 
-       /* this is needed as Samba3 doesn't have the auto init code yet */
-       ldb_tdb_init();
+       /* this is needed as Samba3 doesn't have this globally yet */
+       ldb_global_init();
 
        db_path = lock_path("group_mapping.ldb");