ldb: make ldb a top level library for Samba 4.0 Signed-off-by: Andrew Tridgell <tridge@samba.org>
tdb_compat.h: divert every tdb build and includes to tdb_compat We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/util use modules_path(), data_path() and shlib_ext() from source3 This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
s4:ldb-samba/ldb_wrap.*-dsdb/samdb/samdb.c - handle LDB connection flags as unsigned The LDB API ("ldb_connect") prescribes that they should be "unsigned". Signed-off-by: Metze
s4-param Rename private_path() -> lpcfg_private_path() This is consistent with lock_path() Andrew Bartlett
Use <tdb.h> to include tdb, so the system include file gets used when building against system tdb.
ldb: use #include <ldb.h> for ldb thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
s4:ldb-samba/ldb_wrap.c - fix indentation and trailing whitespaces
s4:"wrap_casefold" - move it to "ldb_wrap.c" since it's only used there
s4-ldb Allow a NULL event context in samba_ldb_init()
ldb-samba: Rename samdb_relative_path to ldb_relative_path, as it's not samdb-specific.
ldb-samba: Add ldb_wrap_add, remove last schema reference from ldb_wrap.
ldb-samba: Split up ldb_wrap_connect() a bit.
ldb-samba: Add convenience function for doing a Samba-style LDB init.
samdb: Handle schema setup in samdb, not in more generic ldbsamba.
s4:ldb_register_samba_handlers - fix up and convert result codes to LDB/LDAP results
s4-ldbwrap: ensure session_info in ldb opaque remains valid A DRS DsBind handle can be re-used in a later connection. This implies reuse of the session_info for the connection. If the first connection is shutdown then the session_info in the sam context on the 2nd connection must remain valid.
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
s4:secrets Ensure secrets.ldb uses the same hooks as the rest of Samba This ensures that, for example, the utf8 functions are the same, the GUID handler is the same and the NOSYNC flag is applied. Andrew Bartlett
s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library. This is needed to remove samba specifc symbols from the bundled ldb, in order to get the ABI right. metze Signed-off-by: Andreas Schneider <asn@samba.org>