summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common/ldb_modules.c
AgeCommit message (Collapse)AuthorFilesLines
2010-07-09s4: fix warning: unused variable ‘i’Kamen Mazdrashki1-1/+0
2010-07-07s4-ldb: added ldb_options_find()Andrew Tridgell1-4/+4
ldb_options_find() allows backends to find options in the options[] array passed to the connect operation. This will be used by the ldb_ldap bind code
2010-06-29ldb:ldb_modules.c - "ldb_dso_load_symbol" - remove unneeded caste before "dlsym"Matthias Dieter Wallnöfer1-2/+1
2010-06-15ldb: Fix included ldb build.Jelmer Vernooij1-0/+4
2010-03-08LDB:common - Change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer1-6/+6
To count LDB objects use variables of type "unsigned (int)" or "long long int" on binary or downto searches. To count characters in strings use "size_t". To calculate differences between pointers use "ptrdiff_t".
2010-02-22LDB related spelling fixes.Brad Hards1-1/+1
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-01-02s4-ldb: fixed valgrind error: ares can be freed by callbackAndrew Tridgell1-4/+1
2010-01-02s4-ldb: allow modules to override error return valuesAndrew Tridgell1-2/+4
The samldb module overrides the error code for some returns when handling primaryGroupID. We need to take the error from the async callback to allow this to work reliably
2010-01-02s4-ldb: added ldb_module_get_ops()Andrew Tridgell1-0/+5
This is needed to support DSDB_FLAG_OWN_MODULE Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2009-10-27s4:ldb Add additional tracing of the ldb APIAndrew Bartlett1-4/+60
This helps pin down where errors occour, by printing a call stack and setting error strings and trace messages in the transaction case. Andrew Bartlett
2009-10-12s4:ldb Allow a NULL module listAndrew Bartlett1-1/+1
2009-10-12s4:ldb Allow a module string of ""Andrew Bartlett1-0/+6
(We may have no modules set) Andrew Bartlett
2009-09-22s4-ldb: only show the outer level of ldb ops when tracingAndrew Tridgell1-3/+11
2009-09-22s4-ldb: don't show timestamps on every line of ldb tracesAndrew Tridgell1-26/+29
This adds ldb_debug_add() and ldb_debug_end() to format multiline messages
2009-09-21s4-ldb: add a LDB_FLG_ENABLE_TRACING for full ldb tracingAndrew Tridgell1-0/+22
When LDB_FLG_ENABLE_TRACING is set ldb will send full traces of all operations and results
2009-09-11ldb: Remove references to operational module init function.Jelmer Vernooij1-1/+0
This module is now part of Samba 4's dsdb subsystem rather than standalone ldb.
2009-09-04ldb: make ldb module programming less error proneAndrew Tridgell1-0/+14
When a top level method in a module returns an error, it is supposed to call ldb_module_done(). We ran across a case where this wasn't done, and then found that in fact that are hundreds of similar cases in our modules. It took Andrew and I a full day to work out that this was the cause of a subtle segv in another part of the code. To try to prevent this happening again, this patch changes ldb_next_request() to catch the error by checking if a module returning an error has called ldb_module_done(). If it hasn't then the call is made on behalf of the module.
2009-09-03always use prepare_commit in ldb transaction commits if possibleAndrew Tridgell1-2/+17
The reason we need this is to make multi-tdb transactions safe, with the partition module. The linked_attributes and repl_meta_data modules now do extra processing when the transaction ends, and that processing can fail. When it fails we need to cancel the transaction, which we can only do if the hook is on the prepare commit instead of the end transaction call. Otherwise the partition module cannot ensure that no commit has been done on another partition.
2009-07-14remove all '\n' from ldb_debugSumit Bose1-12/+12
2009-02-23Fix headers, ldb_includes.h is a private header,Simo Sorce1-4/+1
do not reference it from ldb.h
2009-01-30Add helper function to get a module name, may be useful for debugging.Simo Sorce1-0/+5
2009-01-30Fix the mess with ldb includes.Simo Sorce1-1/+36
Separate again the public from the private headers. Add a new header specific for modules. Also add service function for modules as now ldb_context and ldb_module are opaque structures for them.
2008-12-17s4:ldb: make it possible to return per entry controlsAndrew Bartlett1-1/+5
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-11-06don't give errors when an empty modules list is given to ldbAndrew Tridgell1-2/+9
2008-10-16Transform the sequence_number operation into a normal extended operation as ↵Simo Sorce1-4/+0
it should always have been. Make it also async so that it is not a special case.
2008-09-29LDB ASYNC: Core filesSimo Sorce1-1/+140
2008-09-25Revert LDB return code patches from Matthias.Jelmer Vernooij1-3/+3
2008-09-24Cosmetic corrections for the LDB libraryMatthias Dieter Wallnöfer1-3/+3
This commit applies some cosmetic corrections for the LDB library.
2008-09-23Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce1-1/+1
The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
2008-06-30ldb: allow ldb modules to specify LDB_MODULE(name) or LDB_BACKEND(name)Stefan Metzmacher1-16/+198
metze (This used to be commit 1d5b714438a955d76f92f4ccd8aa2f7f89ffa5fd)
2008-06-17Change our module code to not use the special symbol name init_module()Andrew Tridgell1-10/+0
Current glibc libraries include a function called init_module(). If we use the same name, then a dlsym() can find the glibc function if the module doesn't have an initialisation function. In ldb, none of our modules have an init_module(), so we end up calling the libc functions with bogus arguments. (This used to be commit 1b0621068998590e7b1e9528b78744dcd2cd5909)
2008-02-25Fix use of realpath, fix init functions for ldb.Jelmer Vernooij1-5/+7
(This used to be commit ca510136d2c4cae8f520c76df6aaadb5d412bea1)
2008-02-25Fix standalone ldb build modules.Jelmer Vernooij1-5/+5
(This used to be commit 0b133a30a23757cf463ff22dff6372ae5e11d4c7)
2008-02-25Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij1-47/+28
Conflicts: source/build/smb_build/header.pm source/build/smb_build/makefile.pm source/lib/ldb/include/ldb_private.h (This used to be commit 1a646af0647f021d99473a8991c35e616a423ea6)
2008-02-20Remove more function-based inits.Jelmer Vernooij1-45/+21
(This used to be commit b1a7810f3e70f9a831d9b8e85d531e448072adaf)
2008-02-20Allow ldb backends without init function, use init function-less ldb modules.Jelmer Vernooij1-2/+7
(This used to be commit 141ee91272fb4dafca0149f679e17721b6a3011e)
2008-02-16Move responsibilities of build.h to makefile.Jelmer Vernooij1-1/+0
(This used to be commit a43f6d37bce85748e9cf2675e5beced5db26f1c3)
2007-12-24r26580: Include sentinel in build.h, in case the list is empty.Jelmer Vernooij1-2/+3
(This used to be commit f1997dabed584bdc864c4b7235c29603c312ef46)
2007-12-24r26577: Fix the standalone ldb build.Jelmer Vernooij1-11/+8
(This used to be commit 1cf374eb3125c66844f01d013016feaf99760582)
2007-12-24r26576: Allow the static module loading code to be used for the Python modules.Jelmer Vernooij1-1/+1
Simplify the way module initialization functions are handled. (This used to be commit ba8be2dfc0de4434c798663336b81f7f95cde520)
2007-12-21r26481: Make function for loading symbol from DSO more generic, and allow ↵Jelmer Vernooij1-10/+20
modules to provide an ops table directly rather than an initialization function. (This used to be commit a71419a73a869c24121005ccbbcb4396f888888b)
2007-12-21r26410: Remove unnecessary static.Jelmer Vernooij1-1/+1
(This used to be commit 13ae3108dad2f9f0f7a421d672751fa594f4e3fb)
2007-12-21r26301: Collapose ldb_next_init() into being a caller of ldb_init_module_chainAndrew Bartlett1-14/+10
and therefore further improve debug output. Andrew Bartlett (This used to be commit 5e93ca2ea16a7d10d63606ae539c0fdc4e224556)
2007-12-21r26299: Print out which module failed to initialise.Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 6628d9f843d773ec1a5841f793b16f76910c39c4)
2007-12-21r25962: Move to more modern ldb functions loading module list.Andrew Bartlett1-11/+12
Andrew Bartlett (This used to be commit c3bfcf44a49c6a19579c85fb3660331177a436fb)
2007-12-21r25934: Handle a LDB_ERR_NO_SUCH_OBJECT return value when looking for theAndrew Bartlett1-13/+16
modules. This will be useful when we start enforcing validity in base DNs. Andrew Bartlett (This used to be commit aa8348a27a6938a1a26d4a7ed3b7405966202ad8)
2007-12-21r25856: If the search fails, it is not valid to steal 'res'.Andrew Bartlett1-6/+7
Andrew Bartlett (This used to be commit f4d733c3d00c90ac2e02fcc202240ae7c290463e)
2007-12-21r25755: Fix a couple of memory leaks, in particular a new leak onto the NULLAndrew Bartlett1-2/+4
context caused by my objectclass module work. Andrew Bartlett (This used to be commit 2a835d900fee71e4461d5d18e39b4358fa6fdfba)
2007-10-10r25084: Move samba-specific code out of lib/ldb directory.Jelmer Vernooij1-1/+0
(This used to be commit 917bd737cb07817664d9088860588d47525f5ff8)
2007-10-10r25081: Add modules_dir member to ldb_context that is used rather than a globalJelmer Vernooij1-13/+10
modulesdir setting. Samba always sets this to lp_modulesdir()/ldb (This used to be commit e672380d2156cf0421108a9c34f04f096c2afeed)