summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/modules
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r16028: Re-add the objectclass module, in the new async scheme.Andrew Bartlett1-98/+342
Add a test to show that we need this, and to prove it works (for add at least). Andrew Bartlett (This used to be commit f72079029abb594677bf8c2b63e40c07e910004f)
2007-10-10r15944: rename LDB_ASYNC_ADD -> LDB_ADD, LDB_ASYNC_MODIFY -> LDB_MODIFY, etc...Simo Sorce2-2/+2
(This used to be commit 55d97ef88f377ef1dbf7b1774a15cf9035e2f320)
2007-10-10r15942: Remove the sync internal ldb calls altogether.Simo Sorce5-707/+6
This means that some modules have been disabled as well as they have not been ported to the async interface One of them is the ugly objectclass module. I hope that the change in samldb module will make the MMC happy without the need of this crappy module, we need proper handling in a decent schema module. proxy and ldb_map have also been disabled ldb_sqlite3 need to be ported as well (currenlty just broken). (This used to be commit 51083de795bdcbf649de926e86969adc20239b6d)
2007-10-10r15932: Remove per request credsSimo Sorce4-9/+0
They have never benn used and make little sense too imo (This used to be commit f0c1d08d50f8a3e25650ac85b178ec7a43e433d9)
2007-10-10r15927: Optimize ldb module traverse while keeping the API intact.Simo Sorce6-67/+61
I was sick of jumping inot each module for each request, even the ones not handle by that module. (This used to be commit 7d65105e885a28584e8555453b90232c43a92bf7)
2007-10-10r15922: password_hash.c has proven to be a good way to research how to build ↵Simo Sorce1-42/+65
an async module change asq.c to be more readble (This used to be commit 9197187c4290847721432db09bdfb2f1d06e51ba)
2007-10-10r15913: Error passing in the async code is not in agood shapeSimo Sorce2-6/+202
Start enhancing it and fix some problems with incorrect evalutaion of the codes Implement rdn rename (async only) (This used to be commit 6af1d738b9668d4f0eb6194ac0f84af9e73f8c2e)
2007-10-10r15854: more talloc_set_destructor() typesafe fixesAndrew Tridgell2-5/+2
(This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
2007-10-10r15786: another fix in rdn_nameSimo Sorce1-10/+3
(This used to be commit 202ce2a947626f51467d5c87dfcdb73852282709)
2007-10-10r15762: It make no sense for rdn_name to implement modify, it will need to ↵Simo Sorce1-138/+0
implement rename ... (This used to be commit bf260f2a84f9c1f749798068168a22c86ab2e7b2)
2007-10-10r15761: Fix-as-you-go ...Simo Sorce1-20/+6
Testing various async paths and uncovering bugs (This used to be commit 099d873ea596ece18efe63b06bc64e7f97a96f82)
2007-10-10r14436: mixing of boolean expressions and integers isn't allowedAndrew Tridgell1-3/+3
(This used to be commit 6f7d09262d2e92df137167da55f5a22f32490781)
2007-10-10r14433: sort_result must be initialised when we call do_resultAndrew Tridgell1-1/+2
(This used to be commit a33f6a9832c7ae03e630d33120cfa048a51089d5)
2007-10-10r14391: rdn_name -> asyncSimo Sorce2-7/+176
(This used to be commit 0bc3caa9187e992b09bf797e7de507cca9734ab2)
2007-10-10r14364: operational -> async (untested)Simo Sorce1-0/+251
(This used to be commit b112eb774fb1a3d689c8598bbf55ac3e978b8682)
2007-10-10r14344: More helpful messages on error for command line specified controlsSimo Sorce2-58/+424
fixes in paged_results asq -> async (This used to be commit fbd347544001da9e46246eb0b4a8d165ccab15c9)
2007-10-10r14162: Minor fixes on sortSimo Sorce2-55/+485
Initial work on async paged_results (This used to be commit 72523eae7f8925a2c23d3260875345adcf1661bb)
2007-10-10r13998: From now on ldb_request() will require an alloced requestSimo Sorce2-12/+28
By freeing the request you will be sure everything down the path get freed. this also means you have to steal the results if you want to keep them :) simo. (This used to be commit e8075e6a062ce5edb84485e45d0b841c2ee2af7d)
2007-10-10r13996: simplify ldb_async_wait() some moreSimo Sorce1-1/+1
(This used to be commit ef1b3e6368179fe86ae07b8d00e4668090175551)
2007-10-10r13993: First prototype of how an async module should be built.Simo Sorce1-42/+361
This is NOT tested yet, just compiles. Committing to share the code and gather comments (This used to be commit 1c8536750fb811c987357cf1223666e1d79b2672)
2007-10-10r13786: [merge] Add registration functions for LDB modulesJelmer Vernooij8-153/+66
Applications that use LDB modules will now have to run ldb_global_init() before they can use LDB. The next step will be adding support for loading LDB modules from .so files. This will also allow us to use one LDB without difference between the standalone and the Samba-specific build (This used to be commit 52a235650514039bf8ffee99a784bbc1b6ae6b92)
2007-10-10r13700: added highestCommittedUSN, uSNChanged and uSNCreated support, usingAndrew Tridgell1-0/+43
the @BASEINFO sequenceNumber (simo, I changed the function pointer to a structure element as you preferred) (This used to be commit 68c9ac38c7eed221b44499ee3d74597063dfe7a1)
2007-10-10r13616: Add new ldb functions: ldb_msg_add_steal_string() andAndrew Bartlett1-1/+1
ldb_msg_add_steal_value(). These try to maintain the talloc heirachy, which must be correct otherwise talloc_steal operations of entire attribute lists fails. This fixes the currentTime value, found by using Microsoft's dcdiag tool (before this commit, it pointed to invalid memory, due to the changes in -r 13606) Andrew Bartlett (This used to be commit 424df1bb369fddcfd358cf26dd0da9d3851d181e)
2007-10-10r13615: Make ldb_set_errstring get ldb instead of module as parameter.Simo Sorce2-2/+2
The module was just used to get to the ldb so it was meningless. Also add LDB_WAIT_ONCE e relative code in ldb_ildap.c (This used to be commit d5b467b7c132b0bd4d23918ba7bf3370b1afcce8)
2007-10-10r13507: the 'data' element of LDAP controls is optional.Stefan Metzmacher3-0/+9
(prepare the next commit) metze (This used to be commit a1bbf7f2982185cb6cd544b65b4709ab33a850c5)
2007-10-10r13360: Fix crash bug when 0 results are returned on the internal base searchSimo Sorce1-1/+11
(This used to be commit fbee725ae87efbcf5887c923d55d7cb0d05476a6)
2007-10-10r13354: Add tests to check that controls work properlySimo Sorce1-1/+21
Fix asq module, add a second_stage_init to register with rootdse Fix asq control ldap parsing routines (this was nasty to find out) (This used to be commit 933a80397d137f7d5b79c82a068d62bb6928ef47)
2007-10-10r12995: Don't allow overrides on "name" from above, as it can't be correct.Andrew Bartlett1-5/+5
Andrew Bartlett (This used to be commit 4a50bf95b93310f640a4ba28990f054e85215551)
2007-10-10r12948: fix compiler warningStefan Metzmacher1-1/+1
metze (This used to be commit 157fd2734dfb9b3ac6f6c5ad60bbbd7a50998453)
2007-10-10r12942: this way is betterSimo Sorce1-2/+1
(This used to be commit 982576d2489c9ac3f7d854f598a64a8c4d91a485)
2007-10-10r12941: Add Attribute Scoped Search controlSimo Sorce1-0/+220
want to see what it does ? do aq make test and try: ./bin/ldbsearch -H st/private/sam.ldb --controls=asq:1:member -s base -b 'CN=Administrators,CN=Builtin,DC=samba,DC=example,DC=com' 'objectclass=*' have fun. simo. (This used to be commit 900f4fd3435aacc3351f30afb77d3488d2cb4804)
2007-10-10r12829: fix ldb headers, to not include '<...>' files in .c filesStefan Metzmacher8-28/+9
this helps in getting symbol -fvisibility=hidden (GCC 4 feature) working later. metze (This used to be commit 380938e97f31c7860aed1e73cc0110c6e17b472e)
2007-10-10r12743: Remove the ugly way we had to make a second stage init and introduceSimo Sorce7-53/+53
a second_stage_init private function for modules that need a second stage init. Simo. (This used to be commit 5e8b365fa2d93801a5de1d9ea76ce9d5546bd248)
2007-10-10r12733: Merge ldap/ldb controls into main treeSimo Sorce7-5/+582
There's still lot of work to do but the patch is stable enough to be pushed into the main samba4 tree. Simo. (This used to be commit 77125feaff252cab44d26593093a9c211c846ce8)
2007-10-10r12717: Always compile the skel module, so we know when we break it.Andrew Bartlett1-28/+19
Also fix up all the current issues with the skel module. Andrew Bartlett (This used to be commit d0a0a8de3fa73d8f06a801203e00b90ed8359b98)
2007-10-10r12716: Tridge points out that the request argument to ldb_next_request mustAndrew Bartlett1-17/+29
be a valid talloc() pointer, as other modules may rely on this. Andrew Bartlett (This used to be commit 356c8c56090a7c4254609c0cc138c994b618fa55)
2007-10-10r12658: Couple of fixes related to shared module builds.Jelmer Vernooij5-20/+0
(This used to be commit c297c93faf3b748de68679f5a4be50845ebe25fe)
2007-10-10r12600: Add a new module to sort the objectclass attribute on store. TheAndrew Bartlett1-0/+313
module is perhaps not the most efficient, but I think it is reasonable. This should restore operation of MMC against Samba4 (broken by the templating fixes). Andrew Bartlett (This used to be commit 41948c4bdbfca1160a01a92994324f9e22422afe)
2007-10-10r11981: we should allocate request specific memory in ldb modules off theAndrew Tridgell1-1/+1
request strucutre. It will take a while for this to happen everywhere. (This used to be commit b1d38153b8c1d2d5be2d41005eadb0e0aa46bd72)
2007-10-10r11958: - fixed memory leaks in the ldb_result handling in ldb operationsAndrew Tridgell2-24/+30
- removed an unnecessary level of pointer in ldb_search structure (This used to be commit b8d4afb14a18dfd8bac79882a035e74d3ed312bd)
2007-10-10r11567: Ldb API change patch.Simo Sorce5-164/+291
This patch changes the way lsb_search is called and the meaning of the returned integer. The last argument of ldb_search is changed from struct ldb_message to struct ldb_result which contains a pointer to a struct ldb_message list and a count of the number of messages. The return is not the count of messages anymore but instead it is an ldb error value. I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good amount of places. I also tried to double check all my changes being sure that the calling functions would still behave as before. But this patch is big enough that I fear some bug may have been introduced anyway even if it passes the test suite. So if you are currently working on any file being touched please give it a deep look and blame me for any error. Simo. (This used to be commit 22c8c97e6fb466b41859e090e959d7f1134be780)
2007-10-10r10954: added support for canonicalName in the operational module, using theAndrew Tridgell1-32/+80
dn->canonicalName function abartlet just committed (This used to be commit 197e8a27f0557869eacd17b74e1b14e0665883b1)
2007-10-10r10918: - fixed standalone ldb buildAndrew Tridgell2-222/+4
- added note about allowedAttributesEffective (will be needed for mmc) - fixed some more ldb warnings (This used to be commit e9e4d81b6976549db8a7668572a5da466fbec4a9)
2007-10-10r10917: copy the element name in a ldb_msg_rename_attr() and ↵Andrew Tridgell1-3/+8
ldb_msg_copy_attr() to ensure that callers (like the ldap server) can talloc_steal the name (This used to be commit 9c914542cc346758c82f89990c80eb096a9c0959)
2007-10-10r10916: - finished the 'operational' ldb moduleAndrew Tridgell2-11/+98
- removed the timestamps module, replacing it with the operational module - added a ldb_msg_copy_shallow() function which should be used when a module wants to add new elements to a message on add/modify. This is needed because the caller might be using a constant structure, or may want to re-use the structure again - enabled the UTC time attribute syntaxes in the operational module (This used to be commit 61e8b010223ac6a0573185008f3719ba29574688)
2007-10-10r10913: This patch isn't as big as it looks ...Andrew Tridgell5-76/+267
most of the changes are fixes to make all the ldb code compile without warnings on gcc4. Unfortunately That required a lot of casts :-( I have also added the start of an 'operational' module, which will replace the timestamp module, plus add support for some other operational attributes In ldb_msg_*() I added some new utility functions to make the operational module sane, and remove the 'ldb' argument from the ldb_msg_add_*() functions. That argument was only needed back in the early days of ldb when we didn't use the hierarchical talloc and thus needed a place to get the allocation function from. Now its just a pain to pass around everywhere. Also added a ldb_debug_set() function that calls ldb_debug() plus sets the result using ldb_set_errstring(). That saves on some awkward coding in a few places. (This used to be commit f6818daecca95760c12f79fd307770cbe3346f57)
2007-10-10r10759: make modules easier to write by allowing modules to only implement theAndrew Tridgell4-126/+4
functions they care about, instead of all functions. This also makes it more likely that future changes to ldb will not break existing modules (This used to be commit 45f0c967b58e7c1b2e900a4d74cfde2a2c527dfa)
2007-10-10r10753: don't require every ldb module to implement both a search_bytree() andAndrew Tridgell5-61/+13
a search() function, instead each module now only implements the bytree method, and the expression based search is handled generically by the modules code. This makes for more consistency and less code duplication. fixed the tdb backend to handle BASE searches much more efficiently. They now always only lookup one record, regardless of the search expression (This used to be commit 7e44f9153c5578624e2fca04cdc0a00af0fd9eb4)
2007-10-10r10477: expose transactions outside ldb and change the API once moreSimo Sorce5-14/+46
do not autostart transactions on ldb operations if a transaction is already in place test transactions on winsdb all my tests passes so far tridge please confirm this is ok for you (This used to be commit c2bb2a36bdbe0ec7519697a9a9ba7526a0defac2)
2007-10-10r10305: start implementing better error handlingSimo Sorce5-157/+62
changed the prioivate modules API error string are now not spread over all modules but are kept in a single place. This allows a better control of memory and error reporting. (This used to be commit 3fc676ac1d6f59d08bedbbd9377986154cf84ce4)