summaryrefslogtreecommitdiff
path: root/source4/lib/ldb_wrap.c
AgeCommit message (Collapse)AuthorFilesLines
2010-03-22s4:dsdb Rework schema loading and add schema reloadingAndrew Bartlett1-1/+4
This commit reworks Samba4's schema loading code to detect when it needs to reload the schema. This is done by watching the @REPLCHANGED special DN. The reload happens by means of a callback, which is only set when the schema is loaded from the ldb - not when loaded from an LDIF file or DRS. We also rework the global schema handling - instead of storing the pointer to the global schema in each ldb, we store a flag indicating that the global schema should be returned at run time. This makes it much easier to switch to a new global schema. Andrew Bartlett
2009-12-21ldb_wrap: Fix compilation when using system ldb.Jelmer Vernooij1-1/+1
2009-10-27s4-dsdb: call dsdb_make_schema_global() from ldb_wrapAndrew Tridgell1-0/+5
Calling it from samdb_connect() can cause a stale schema to be put into the global schema. Thanks to Andrew Bartlett for spotting this.
2009-10-23s4-ldb: move the tdb_reopen_all() calls to ldb_wrap.cAndrew Tridgell1-1/+8
2009-10-23s4-ldb: use ldb_wrap_fork_hook() to cancel child transactionsAndrew Tridgell1-1/+5
2009-10-23s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()Andrew Tridgell1-27/+96
This allows us to reuse a ldb context if it is open twice, instead of going through the expensive process of a full ldb open. We can reuse it if all of the parameters are the same. The change relies on callers using talloc_unlink() or free of a parent to close a ldb context.
2009-09-21s4-samdb: enable ldb tracing when log level >= 10Andrew Tridgell1-0/+4
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-1/+1
list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
2008-09-29LDB ASYNC: misc changesSimo Sorce1-12/+1
2008-09-25Revert LDB return code patches from Matthias.Jelmer Vernooij1-1/+1
2008-09-24Cosmetic corrections for the DSDB moduleMatthias Dieter Wallnöfer1-1/+1
This commit applies some cosmetic corrections for the DSDB (Directory Server Database).
2008-08-21Push loading the objectGUID and objectSID handlers earlier.Andrew Bartlett1-4/+8
Andrew Bartlett (This used to be commit 0b6e53f80b063d8702718c84409d7b069aee9c05)
2008-06-14Make up the right dependencies now that ldb depends on libeventsSimo Sorce1-7/+16
(This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
2008-05-16Fix an uninitialized variable warningVolker Lendecke1-1/+1
(This used to be commit b3d024676426000380ad86a2a4b83e7b21478978)
2008-04-21Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce1-1/+1
the code. Make sure we pass around the event_context where we need it instead. All test but a few python ones fail. Jelmer promised to fix them. (This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
2008-04-17Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij1-5/+4
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-03-06ldb_wrap: Debug at derived samba_level, not the level of the ldb debug enum.Andrew Kroeger1-1/+1
(This used to be commit eb9a7c3b3a7f113ff58e2ebea9886f997da4e085)
2007-12-26r26593: - More work on the python versions of samba3dump and the samba3sam ↵Jelmer Vernooij1-1/+1
tests. - Initial work converting the upgrade code to Python. - Removed the old EJS upgrade code because it has been broken for a long time. (This used to be commit 150cf39fbd4fe088546870fb0d8f20c0d9eb4aca)
2007-12-21r26229: Set loadparm context as opaque pointer in ldb, remove more uses of ↵Jelmer Vernooij1-0/+5
global_loadparm. (This used to be commit 37d05fdc7b0e6b3211ba6ae56b1b5da30a6a392a)
2007-12-21r26200: Bring back some accidently removed files.Jelmer Vernooij1-0/+186
(This used to be commit a71e40ab5dc7f0a5f6d2d1eb930f378cd143b186)
2007-12-21r26197: Add bindings for libsecurity.Jelmer Vernooij1-186/+0
(This used to be commit 8625cd403ba3a7d2b1b1fccfeb5efd7e21de0135)
2007-12-21r26018: dsdb/schema/proto.h doesn't exist anymoreStefan Metzmacher1-1/+0
metze (This used to be commit 3b8215270ce477442dd98a4e4d26b5fcea73f98f)
2007-12-21r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.Jelmer Vernooij1-0/+187
(This used to be commit 56dfcb4f2f8e74c9d8b2fe3a0df043781188a555)