summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
AgeCommit message (Collapse)AuthorFilesLines
2008-06-30ldb: allow ldb modules to specify LDB_MODULE(name) or LDB_BACKEND(name)Stefan Metzmacher2-163/+198
metze (This used to be commit 1d5b714438a955d76f92f4ccd8aa2f7f89ffa5fd)
2008-06-17Change our module code to not use the special symbol name init_module()Andrew Tridgell2-20/+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-06-15Note that making ldb the event context parent seem to lead to races whenSimo Sorce1-1/+1
freeing up resources. Try to avoid races by making the autofree context be the parent of the event system (This used to be commit 10ffa87b6b7ebfe51e81819feb93a72e9ec10418)
2008-06-15Now that we pass down the event context, start removing calls toSimo Sorce1-0/+2
event_context_init() where possible (This used to be commit 412f7a98dd809306ac9f35003fce554e1e1252e7)
2008-06-14Ups fix typo in error typeSimo Sorce1-2/+2
(This used to be commit eb351e33e58abdacdf44cf700f028cc13f52c4c8)
2008-06-14Cosmetic fixes.Simo Sorce1-88/+141
Remove trailing spaces adn try to fit 80 columns where possible (This used to be commit 5457c667647ec156bb7b4f86ce580def4e9350d5)
2008-06-14Make up the right dependencies now that ldb depends on libeventsSimo Sorce1-7/+27
(This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
2008-03-28Merge v4.0-testJelmer Vernooij1-1/+1
(This used to be commit 977dbdeaf363c8905ed9fd0570eba4be80582833)
2008-03-18ldb: fix the standalone buildStefan Metzmacher2-6/+6
metze (This used to be commit 91b49365abed6f67e2b3c18b0090b4e6ff1df935)
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 Vernooij2-58/+90
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-21Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-localAndrew Bartlett2-57/+83
(This used to be commit 5cd3310b78a85243eb436d05db3228c3495f9162)
2008-02-21Until the new ldb changes land, make ldb_wait set the error string.Andrew Bartlett1-1/+7
This makes it easier to track down which module only returned and error code, but not the error string. Andrew Bartlett (This used to be commit c4d502f68fbd5d5bc2ac5bb6369950379c9176fc)
2008-02-20Fix static module list generation for ldb.Jelmer Vernooij1-1/+0
(This used to be commit 92c1c0e9137f0845cac6cc96bf78711b6aaffe21)
2008-02-20Remove more function-based inits.Jelmer Vernooij2-56/+69
(This used to be commit b1a7810f3e70f9a831d9b8e85d531e448072adaf)
2008-02-20Allow ldb backends without init function, use init function-less ldb modules.Jelmer Vernooij2-2/+16
(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-21r26540: Revert my previous commit after concerns raised by Andrew.Jelmer Vernooij1-1/+1
(This used to be commit 6ac86f8be7d9a8c5ab396a93e6d1e6819e11f173)
2007-12-21r26539: Remove unnecessary statics.Jelmer Vernooij1-1/+1
(This used to be commit e53e79eebef3ece6978f0a2b4a1ee0a0814bb5d2)
2007-12-21r26529: Indeed, this belongs in the schema module. Ranged results need to useAndrew Bartlett1-5/+0
an attribute with ';' in the name. Andrew Bartlett (This used to be commit f4023b176eabfb3282fe9b999eac8db55a095ab0)
2007-12-21r26481: Make function for loading symbol from DSO more generic, and allow ↵Jelmer Vernooij2-11/+25
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-21r26192: Handle, test and implement the style of extended_dn requiest that ↵Andrew Bartlett1-9/+17
MMC uses. It appears that the control value is optional, implying type 0 responses. Failing to parse this was causing LDAP disconnects with 'unavailable critical extension'. Andrew Bartlett (This used to be commit 833dfc2f2af84c45f954e428c9ea6babf100ba92)
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-21r25933: LDB: Don't free errstring until after the printf, in case it is one ofAndrew Bartlett1-1/+3
the arguments. Andrew Bartlett (This used to be commit af40b1cd88f0e932665f6fe90daae8e687a3dc0c)
2007-12-21r25857: IndentAndrew Bartlett1-1/+2
(This used to be commit f42690a90c2f76e7fc130ebbdbd0f93fefacfad6)
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-21r25843: Finish check-soloading.Jelmer Vernooij1-1/+1
(This used to be commit 4fd3770f0c3f9a3e586f1a03a759dab782e04ba7)
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-12-21r25630: Allow "NULL" as memory context, for consistency with the rest of the ↵Jelmer Vernooij1-1/+1
code, which also does. (This used to be commit 083b606496308741958bb9fc6b3e50a582857677)
2007-10-10r25218: After discussion with Simo, remove the subclass support from LDB.Andrew Bartlett2-139/+1
Subclass support was designed to avoid needing to spell out the full list of objectClasses that an entry was in. However, Samba4 now enforces this restriction in the objectClass module, and the way subclass matching was handled was complex and counter-intuitive in my opinion (and did not match LDAP). Andrew Bartlett (This used to be commit f5ce04b904e14445a2a7e7f92e7e1f64b645c6f2)
2007-10-10r25215: replace talloc_append_string() with talloc_strdup_append_buffer()Stefan Metzmacher1-14/+6
metze (This used to be commit 8f2db3c130ce85d38f805836a7df039822ede066)
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 Vernooij2-13/+11
modulesdir setting. Samba always sets this to lp_modulesdir()/ldb (This used to be commit e672380d2156cf0421108a9c34f04f096c2afeed)
2007-10-10r24566: Remove trailing newlines in ldb_debug(), these are not required.Andrew Bartlett1-2/+2
Andrew Bartlett (This used to be commit 2ed782f7caa98003c524d70bcb97874002be57a2)
2007-10-10r24261: Fix the standalone ldb build after I moved the objectclass module out.Andrew Bartlett1-2/+0
Andrew Bartlett (This used to be commit c4c3afcdcb6ac5dc220f353b25689056484ac6c9)
2007-10-10r23993: Attempt to fix bug #4808, reported by mwallnoefer@yahoo.de. The issueAndrew Bartlett1-1/+4
is that when we all ldb_msg_add_empty(), we might realloc() the msg->elements array. We need to ensure the source pointer (when copying an element from the same msg) is still valid, or the data copied. Andrew Bartlett (This used to be commit 0fbea30577233d00e7c6cdd4faaece0f99fc57b1)
2007-10-10r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell13-27/+13
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
2007-10-10r23795: more v2->v3 conversionAndrew Tridgell12-12/+12
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
2007-10-10r23560: - Activate metze's schema modules (from metze's schema-loading-13 ↵Andrew Bartlett1-2/+10
patch). - samba3sam.js: rework the samba3sam test to not use objectCategory, as it's has special rules (dnsName a simple match) - ldap.js: Test the ordering of the objectClass attributes for the baseDN - schema_init.c: Load the mayContain and mustContain (and system...) attributes when reading the schema from ldb - To make the schema load not suck in terms of performance, write the schema into a static global variable - ldif_handlers.c: Match objectCategory for equality and canonicolisation based on the loaded schema, not simple tring manipuation - ldb_msg.c: don't duplicate attributes when adding attributes to a list - kludge_acl.c: return allowedAttributesEffective based on schema results and privilages Andrew Bartlett (This used to be commit dcff83ebe463bc7391841f55856d7915c204d000)
2007-10-10r22989: allow '@foo' attributes searchable as we allow '@foo' attributesStefan Metzmacher1-0/+4
in all other places too... metze (This used to be commit 4e32aafb9ebdcc70966aaa2e3891ec9a0959535d)
2007-10-10r22789: fix loading of internal samba4 modulesStefan Metzmacher1-3/+3
metze (This used to be commit f6740c8b7abdaa65c8467220bf2d14e21fe71053)
2007-10-10r22750: dlopen() is always available now (and returns a correct error if not ↵Jelmer Vernooij1-5/+0
supported by the system), thanks to libreplace. (This used to be commit 1152a4f56d7402bf3aa00b5b108c5c6c668cec6b)