Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-10-18 | s4:ldb_msg_check_string_attribute - add a comment about the result values | Matthias Dieter Wallnöfer | 1 | -1/+5 | |
2009-10-18 | Revert "s4:ldb_msg - Use LDB constants on results" | Matthias Dieter Wallnöfer | 1 | -3/+4 | |
This reverts commit 56a8baff3df6a5120b6c7bbca771dfb7c6934fd5. Simo pointed out that I was wrong here. | |||||
2009-10-18 | s4:ldb_msg - Use LDB constants on results | Matthias Dieter Wallnöfer | 1 | -5/+7 | |
2009-10-16 | s4:ldb - fixed dangling pointer in ldb_request_add_control() | Endi S. Dewata | 1 | -2/+7 | |
2009-10-15 | s4-ldb: removed bugus RDN length check | Andrew Tridgell | 1 | -5/+0 | |
This isn't the rDN ! | |||||
2009-10-12 | Revert "s4:ldb - add a check which has to be done on beginning of a "modify" ↵ | Matthias Dieter Wallnöfer | 1 | -8/+0 | |
operation" This reverts commit f9990e9b391f330a8e6c5c158ee4e4eaa50f6176. abartlet claims that this behaviour is too AD specific to put here. Btw I had also some doubts if this is clean enough. I put it only here to make "ldap.py" pass. I'll try to find a new solution soon. | |||||
2009-10-12 | s4:ldb Allow a NULL module list | Andrew Bartlett | 1 | -1/+1 | |
2009-10-12 | s4:ldb Allow a module string of "" | Andrew Bartlett | 1 | -0/+6 | |
(We may have no modules set) Andrew Bartlett | |||||
2009-10-08 | s4:ldb - add a check which has to be done on beginning of a "modify" operation | Matthias Dieter Wallnöfer | 1 | -0/+8 | |
2009-10-02 | Revert "s4:ldb always talloc_free() the ldb_ldif_write context, even on success" | Andrew Tridgell | 1 | -1/+0 | |
This reverts commit a610843e9f21ee77fd29356313d2ef05fe25a1ed. | |||||
2009-10-02 | s4:ldb always talloc_free() the ldb_ldif_write context, even on success | Andrew Bartlett | 1 | -0/+1 | |
2009-10-02 | s4-ldb: Add new relax controls that allow relaxed x500 constraints checks | Matthieu Patou | 1 | -0/+27 | |
2009-10-02 | s4-ldb: Add support for binary blobs in DNs | Andrew Tridgell | 1 | -30/+288 | |
AD has the concept of a DN prefixed with B:NN:XXXXXX: that contains a binary blob. We need to support those in order to give correctly formatted binary blobs for things like wellKnownObjects This implementation is not ideal, as it allows for binary blobs on all DNs, whereas it should only allow them on those with a syntax of 2.5.5.7. We should clean this up in the future, but meanwhile this implementation at least gets us a working DC join of w2k8 to s4. This patch also uses a static function for marking DNs as invalid, which is very useful when debugging this code, as you can break on it in gdb. | |||||
2009-10-01 | s4:ldb_msg_diff - Fixes up possible memory leaks and the python binding of it | Matthias Dieter Wallnöfer | 1 | -3/+9 | |
2009-09-22 | s4-ldb: fixed call argument order for ldb_dn_from_ldb_val | Andrew Tridgell | 1 | -3/+3 | |
This caused _lots_ of problems, especially in server side sort | |||||
2009-09-22 | s4-ldb: when tracing, show ldb_set_debug messages | Andrew Tridgell | 1 | -0/+3 | |
2009-09-22 | s4-ldb: only show the outer level of ldb ops when tracing | Andrew Tridgell | 2 | -4/+37 | |
2009-09-22 | s4-ldb: don't show timestamps on every line of ldb traces | Andrew Tridgell | 3 | -64/+96 | |
This adds ldb_debug_add() and ldb_debug_end() to format multiline messages | |||||
2009-09-22 | Move the check above the talloc | Anatoliy Atanasov | 1 | -5/+6 | |
2009-09-21 | Add support in the ldb_dn.c code for MS-ADTS:3.1.1.5.1.2 Naming Constraints | Anatoliy Atanasov | 1 | -0/+13 | |
2009-09-21 | s4-ldb: bit prettier output | Andrew Tridgell | 1 | -7/+15 | |
2009-09-21 | s4-ldb: fixed O(n^2) string handling in ldif debug print | Andrew Tridgell | 1 | -3/+3 | |
2009-09-21 | s4-ldb: add a LDB_FLG_ENABLE_TRACING for full ldb tracing | Andrew Tridgell | 3 | -1/+126 | |
When LDB_FLG_ENABLE_TRACING is set ldb will send full traces of all operations and results | |||||
2009-09-20 | s4:ldb print out which LDB the transaction is still active on. | Andrew Bartlett | 1 | -2/+2 | |
2009-09-20 | s4:ldb_parse - Fix the type of an array entry | Matthias Dieter Wallnöfer | 1 | -1/+1 | |
I found this through a compile warning. Hope that I got this right. | |||||
2009-09-20 | s4:ldb: add ldb_parse_tree_copy_shallow() and change version to 0.9.7 | Stefan Metzmacher | 1 | -0/+58 | |
metze | |||||
2009-09-15 | s4-ldb: ldap attribute names can contain a '.' | Andrew Tridgell | 1 | -1/+2 | |
When they are of the form of OIDs | |||||
2009-09-15 | s4-ldb: expose ldb_transaction_prepare_commit() in ldb | Andrew Tridgell | 1 | -21/+57 | |
It is useful to be able to control the 2 phase commit from application code (s4 replication uses it) | |||||
2009-09-11 | ldb: Remove references to operational module init function. | Jelmer Vernooij | 1 | -1/+0 | |
This module is now part of Samba 4's dsdb subsystem rather than standalone ldb. | |||||
2009-09-11 | s4-ldb: don't remove a message element beyond the end of the array | Andrew Tridgell | 1 | -0/+4 | |
2009-09-08 | s4/ldb: expose the ldb flags with ldb_get_flags() | Andrew Tridgell | 1 | -0/+6 | |
2009-09-08 | s4/ldb: don't line wrap ldif when --show-binary is used | Andrew Tridgell | 1 | -4/+9 | |
2009-09-08 | s4/ldb: added --show-binary command line option | Andrew Tridgell | 1 | -2/+6 | |
This add --show-binary to ldbsearch. When this flag is set, binary blobs will be shown as-is, instead of base64 encoded. This is useful for some XML encoded attributes, and will also be used as part of some NDR print formatting for attributes like repsTo. | |||||
2009-09-04 | ldb: make ldb module programming less error prone | Andrew Tridgell | 1 | -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-03 | always use prepare_commit in ldb transaction commits if possible | Andrew Tridgell | 2 | -6/+50 | |
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-09-02 | don't allow two controls to be added with the same OID | Andrew Tridgell | 1 | -1/+7 | |
Two controls with the same OID makes no sense, as they may have different data attached | |||||
2009-09-02 | added ldb_ldif_message_string() | Andrew Tridgell | 1 | -0/+16 | |
This function provides a easy function for displaying a ldb_message structure in a human readable format. It is especially useful for calling in gdb. | |||||
2009-08-30 | ldb: cosmetic changes in ldb_dn | Simo Sorce | 1 | -193/+292 | |
- remove trailing spaces and tabs - shorten some variable names for readability - try to break superlong lines for readability | |||||
2009-08-26 | s4:ldb Add ldb_ldif_write_string() and python wrappers | Andrew Bartlett | 1 | -0/+40 | |
This allows us to turn a python LdbMessage back into a string. Andrew Bartlett | |||||
2009-08-21 | s4:ldb Use length-limited printf to avoid walking off end of strings | Andrew Bartlett | 1 | -1/+1 | |
This should ensure the debug messages do not have random characters at their ends. Andrew Bartlett | |||||
2009-08-14 | s4:ldb - Free the asynchronous result | Matthias Dieter Wallnöfer | 1 | -0/+2 | |
2009-08-07 | make sure we never look past the end of either string in ldb_comparison_fold() | Andrew Tridgell | 1 | -26/+44 | |
This fixes a bug in the samba3sam test with the python libraries as noticed by abartlet | |||||
2009-07-23 | s4:ldb: add support for the new Recycle Bin Feature LDAP controls | Stefan Metzmacher | 1 | -0/+54 | |
LDB_CONTROL_SHOW_RECYCLED_OID 1.2.840.113556.1.4.2064 LDB_CONTROL_SHOW_DEACTIVATED_LINK_OID 1.2.840.113556.1.4.2065 metze | |||||
2009-07-14 | remove all '\n' from ldb_debug | Sumit Bose | 5 | -20/+21 | |
2009-07-06 | s4:ldb Fix talloc hirarchy in LDIF parsing code | Andrew Bartlett | 1 | -3/+3 | |
The problem here was that some parts of the ldb_message were still attached to the ldb_ldif structure, and when only the message was taken (and the ldif free'ed to reclaim memory) we refereced free'ed memory. Andrew Bartlett | |||||
2009-06-29 | ldb: Properly handle NULL when copying attr lists. | Andrew Kroeger | 1 | -4/+4 | |
When copying an attribute list, ensure the list itself is not NULL before attempting to access elements of the list. | |||||
2009-06-10 | fixed server side sorting of case-insensitive strings | Andrew Tridgell | 1 | -3/+0 | |
The sort module uses ldb_comparison_fold() as the comparison function for case-insensitive attributes. In other places the function is being used to produce a boolean, but for sorting we care about ordering. The n1 - n2 return was sorting by length, not value | |||||
2009-06-01 | when comp_num is zero, the case folded DN is always "" | Andrew Tridgell | 1 | -8/+2 | |
This fixes a bug where we would look at an uninitialised dn->linearized | |||||
2009-05-26 | s4:ldb:modules: Correct typos. | Andrew Kroeger | 1 | -3/+1 | |
2009-04-23 | Provide a ldb_global_init() function for compatibility with older versions ↵ | Jelmer Vernooij | 1 | -0/+6 | |
of LDB (including the one in Samba 3). |