summaryrefslogtreecommitdiff
path: root/source/lib/ldb/modules/operational.c
Commit message (Collapse)AuthorAgeFilesLines
* Use struct-based rather than function-based initialization for ldb modules ↵Jelmer Vernooij2008-02-201-6/+1
| | | | everywhere.
* r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell2007-10-101-2/+1
|
* r23795: more v2->v3 conversionAndrew Tridgell2007-10-101-1/+1
|
* r22681: Fix standalone ldb build when parent directory name != ldb.Jelmer Vernooij2007-10-101-2/+1
|
* r21354: fix commentStefan Metzmacher2007-10-101-1/+1
| | | | metze
* r20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointerStefan Metzmacher2007-10-101-4/+10
| | | | | | | | | | | | | | | | to a ldb_schema_syntax struct. the default attribute handler is now registered dynamicly as "*" attribute, instead of having its own code path. ldb_schema_attribute's can be added to the ldb_schema given a ldb_schema_syntax struct or the syntax name we may also need to introduce a ldb_schema_matching_rule, and add a pointer to a default ldb_schema_matching_rule in the ldb_schema_syntax. metze
* r18781: Move the usnCreated and usnChanged handling around again.Andrew Bartlett2007-10-101-127/+0
| | | | | | | | | | | | | | This moves these attributes from objectguid into an optional backend (objectguid), used by ltdb. For OpenLDAP, the entryUUID module converts entryCSN into usnChanged. This also changes the sequence number API, and uses 'time based' sequence numbers, when an LDAP or similar backend is detected. To assist this, we also store the last modified time in the TDB, whenever we change a value. Andrew Bartlett
* r18301: I discovered how to load the warnings from a build farm build intoAndrew Tridgell2007-10-101-1/+1
| | | | | | | | emacs compile mode (hint, paste to a file, and compile as "cat filename"). This allowed me to fix nearly all the warnings for a IA_64 SuSE build very quickly.
* r17526: Move timestamp generation into the objectGUID module. It probablyAndrew Bartlett2007-10-101-41/+0
| | | | | | | | | needs to be renamed (operation_add?). This allows me to match the behaviour and substitute with the entryUUID module for remote LDAP connections. Andrew Bartlett
* r17514: Simplify the way to set ldb errors and add anotherSimo Sorce2007-10-101-1/+1
| | | | helper function to set them.
* r17186: "async" word abuse clean-up part 2Simo Sorce2007-10-101-14/+14
|
* r17185: Oh, I wanted to do this for sooo long time.Simo Sorce2007-10-101-2/+2
| | | | | | | | Finally acknowledge that ldb is inherently async and does not have a dual personality anymore Rename all ldb_async_XXX functions to ldb_XXX except for ldb_async_result, it is now ldb_reply to reflect the real function of this structure. Simo.
* r16972: Replace the sequence_number function pointer in ldb with the ldb flags.Andrew Bartlett2007-10-101-9/+14
| | | | | | | | | | | | | | | | | | The function pointer was meant to be unused, this patch fixes partition.c to use ldb_sequence_number(). (No backend provided the pointer any more). Set the flags onto the ldb structure, so that all backends opened by the partitions module inherit the flags. Set the read-ony flag when accessed as the global catalog Modify the LDAP server to track that this query is for the global catalog (by incoming port), and set a opqaue pointer. Next step is to read that opaque pointer in the partitions module. Andrew Bartlett
* r16036: Add a couple of new functions to corretly deal with timeouts.Simo Sorce2007-10-101-3/+5
| | | | | Check timeouts are correctly verified. Some minor fixed and removal of unused code.
* r15942: Remove the sync internal ldb calls altogether.Simo Sorce2007-10-101-180/+0
| | | | | | | | | | | | | 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).
* r15932: Remove per request credsSimo Sorce2007-10-101-1/+0
| | | | They have never benn used and make little sense too imo
* r15927: Optimize ldb module traverse while keeping the API intact.Simo Sorce2007-10-101-16/+10
| | | | | I was sick of jumping inot each module for each request, even the ones not handle by that module.
* r15761: Fix-as-you-go ...Simo Sorce2007-10-101-20/+6
| | | | Testing various async paths and uncovering bugs
* r14391: rdn_name -> asyncSimo Sorce2007-10-101-2/+2
|
* r14364: operational -> async (untested)Simo Sorce2007-10-101-0/+251
|
* r13786: [merge] Add registration functions for LDB modulesJelmer Vernooij2007-10-101-22/+15
| | | | | | | | | 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
* r13700: added highestCommittedUSN, uSNChanged and uSNCreated support, usingAndrew Tridgell2007-10-101-0/+43
| | | | | | | the @BASEINFO sequenceNumber (simo, I changed the function pointer to a structure element as you preferred)
* r13616: Add new ldb functions: ldb_msg_add_steal_string() andAndrew Bartlett2007-10-101-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
* r12829: fix ldb headers, to not include '<...>' files in .c filesStefan Metzmacher2007-10-101-5/+1
| | | | | | this helps in getting symbol -fvisibility=hidden (GCC 4 feature) working later. metze
* r12743: Remove the ugly way we had to make a second stage init and introduceSimo Sorce2007-10-101-3/+1
| | | | | | a second_stage_init private function for modules that need a second stage init. Simo.
* r12733: Merge ldap/ldb controls into main treeSimo Sorce2007-10-101-1/+3
| | | | | | | There's still lot of work to do but the patch is stable enough to be pushed into the main samba4 tree. Simo.
* r12658: Couple of fixes related to shared module builds.Jelmer Vernooij2007-10-101-4/+0
|
* r11981: we should allocate request specific memory in ldb modules off theAndrew Tridgell2007-10-101-1/+1
| | | | request strucutre. It will take a while for this to happen everywhere.
* r11958: - fixed memory leaks in the ldb_result handling in ldb operationsAndrew Tridgell2007-10-101-4/+4
| | | | - removed an unnecessary level of pointer in ldb_search structure
* r11567: Ldb API change patch.Simo Sorce2007-10-101-26/+58
| | | | | | | | | | | | | | | 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.
* r10954: added support for canonicalName in the operational module, using theAndrew Tridgell2007-10-101-32/+80
| | | | dn->canonicalName function abartlet just committed
* r10918: - fixed standalone ldb buildAndrew Tridgell2007-10-101-0/+4
| | | | | | - added note about allowedAttributesEffective (will be needed for mmc) - fixed some more ldb warnings
* r10917: copy the element name in a ldb_msg_rename_attr() and ↵Andrew Tridgell2007-10-101-3/+8
| | | | | | ldb_msg_copy_attr() to ensure that callers (like the ldap server) can talloc_steal the name
* r10916: - finished the 'operational' ldb moduleAndrew Tridgell2007-10-101-6/+95
| | | | | | | | | | | - 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
* r10913: This patch isn't as big as it looks ...Andrew Tridgell2007-10-101-0/+217
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.