summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/common
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-ldb: allow for unescaped '=' in a index DNAndrew Tridgell2009-10-251-0/+13
| | | | | | | The ldb_dn_explode code normally enforces all special characters, including a '=', must be escaped. Unfortunately this conflicts with the ltdb index DNs, which for binary attributes may be base64 encoded. This allows a unescaped '=' as a special case for index DNs.
* s4-ldb: added ldb_transaction_cancel_noerr()Andrew Tridgell2009-10-231-0/+13
| | | | | This will be used to allow cancelling of transactions in a child after a fork()
* s4-ldb: fast path for equal pointersAndrew Tridgell2009-10-221-1/+1
| | | | We compare identical ldb_val values surprisingly often
* s4-ldb: allow for non-null terminated ldb_val in ldb_dn_from_ldb_valAndrew Tridgell2009-10-211-1/+1
| | | | The strlen() could go past the end of a non-null terminated value
* s4:ldb Add new function to create a cut down list of controlsAndrew Bartlett2009-10-211-0/+41
| | | | | | This I hope will be useful for removing controls from the ldb_reply Andrew Bartlett
* s4:ldb Add function to add controls to an LDB replyAndrew Bartlett2009-10-211-0/+34
|
* s4:ldb_msg_check_string_attribute - add a comment about the result valuesMatthias Dieter Wallnöfer2009-10-181-1/+5
|
* Revert "s4:ldb_msg - Use LDB constants on results"Matthias Dieter Wallnöfer2009-10-181-3/+4
| | | | | This reverts commit 56a8baff3df6a5120b6c7bbca771dfb7c6934fd5. Simo pointed out that I was wrong here.
* s4:ldb_msg - Use LDB constants on resultsMatthias Dieter Wallnöfer2009-10-181-5/+7
|
* s4:ldb - fixed dangling pointer in ldb_request_add_control()Endi S. Dewata2009-10-161-2/+7
|
* s4-ldb: removed bugus RDN length checkAndrew Tridgell2009-10-151-5/+0
| | | | This isn't the rDN !
* Revert "s4:ldb - add a check which has to be done on beginning of a "modify" ↵Matthias Dieter Wallnöfer2009-10-121-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.
* s4:ldb Allow a NULL module listAndrew Bartlett2009-10-121-1/+1
|
* s4:ldb Allow a module string of ""Andrew Bartlett2009-10-121-0/+6
| | | | | | (We may have no modules set) Andrew Bartlett
* s4:ldb - add a check which has to be done on beginning of a "modify" operationMatthias Dieter Wallnöfer2009-10-081-0/+8
|
* Revert "s4:ldb always talloc_free() the ldb_ldif_write context, even on success"Andrew Tridgell2009-10-021-1/+0
| | | | This reverts commit a610843e9f21ee77fd29356313d2ef05fe25a1ed.
* s4:ldb always talloc_free() the ldb_ldif_write context, even on successAndrew Bartlett2009-10-021-0/+1
|
* s4-ldb: Add new relax controls that allow relaxed x500 constraints checksMatthieu Patou2009-10-021-0/+27
|
* s4-ldb: Add support for binary blobs in DNsAndrew Tridgell2009-10-021-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.
* s4:ldb_msg_diff - Fixes up possible memory leaks and the python binding of itMatthias Dieter Wallnöfer2009-10-011-3/+9
|
* s4-ldb: fixed call argument order for ldb_dn_from_ldb_valAndrew Tridgell2009-09-221-3/+3
| | | | This caused _lots_ of problems, especially in server side sort
* s4-ldb: when tracing, show ldb_set_debug messagesAndrew Tridgell2009-09-221-0/+3
|
* s4-ldb: only show the outer level of ldb ops when tracingAndrew Tridgell2009-09-222-4/+37
|
* s4-ldb: don't show timestamps on every line of ldb tracesAndrew Tridgell2009-09-223-64/+96
| | | | | This adds ldb_debug_add() and ldb_debug_end() to format multiline messages
* Move the check above the tallocAnatoliy Atanasov2009-09-221-5/+6
|
* Add support in the ldb_dn.c code for MS-ADTS:3.1.1.5.1.2 Naming ConstraintsAnatoliy Atanasov2009-09-211-0/+13
|
* s4-ldb: bit prettier outputAndrew Tridgell2009-09-211-7/+15
|
* s4-ldb: fixed O(n^2) string handling in ldif debug printAndrew Tridgell2009-09-211-3/+3
|
* s4-ldb: add a LDB_FLG_ENABLE_TRACING for full ldb tracingAndrew Tridgell2009-09-213-1/+126
| | | | | When LDB_FLG_ENABLE_TRACING is set ldb will send full traces of all operations and results
* s4:ldb print out which LDB the transaction is still active on.Andrew Bartlett2009-09-201-2/+2
|
* s4:ldb_parse - Fix the type of an array entryMatthias Dieter Wallnöfer2009-09-201-1/+1
| | | | I found this through a compile warning. Hope that I got this right.
* s4:ldb: add ldb_parse_tree_copy_shallow() and change version to 0.9.7Stefan Metzmacher2009-09-201-0/+58
| | | | metze
* s4-ldb: ldap attribute names can contain a '.'Andrew Tridgell2009-09-151-1/+2
| | | | When they are of the form of OIDs
* s4-ldb: expose ldb_transaction_prepare_commit() in ldbAndrew Tridgell2009-09-151-21/+57
| | | | | It is useful to be able to control the 2 phase commit from application code (s4 replication uses it)
* ldb: Remove references to operational module init function.Jelmer Vernooij2009-09-111-1/+0
| | | | | This module is now part of Samba 4's dsdb subsystem rather than standalone ldb.
* s4-ldb: don't remove a message element beyond the end of the arrayAndrew Tridgell2009-09-111-0/+4
|
* s4/ldb: expose the ldb flags with ldb_get_flags()Andrew Tridgell2009-09-081-0/+6
|
* s4/ldb: don't line wrap ldif when --show-binary is usedAndrew Tridgell2009-09-081-4/+9
|
* s4/ldb: added --show-binary command line optionAndrew Tridgell2009-09-081-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.
* ldb: make ldb module programming less error proneAndrew Tridgell2009-09-041-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.
* always use prepare_commit in ldb transaction commits if possibleAndrew Tridgell2009-09-032-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.
* don't allow two controls to be added with the same OIDAndrew Tridgell2009-09-021-1/+7
| | | | | Two controls with the same OID makes no sense, as they may have different data attached
* added ldb_ldif_message_string()Andrew Tridgell2009-09-021-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.
* ldb: cosmetic changes in ldb_dnSimo Sorce2009-08-301-193/+292
| | | | | | - remove trailing spaces and tabs - shorten some variable names for readability - try to break superlong lines for readability
* s4:ldb Add ldb_ldif_write_string() and python wrappersAndrew Bartlett2009-08-261-0/+40
| | | | | | This allows us to turn a python LdbMessage back into a string. Andrew Bartlett
* s4:ldb Use length-limited printf to avoid walking off end of stringsAndrew Bartlett2009-08-211-1/+1
| | | | | | | This should ensure the debug messages do not have random characters at their ends. Andrew Bartlett
* s4:ldb - Free the asynchronous resultMatthias Dieter Wallnöfer2009-08-141-0/+2
|
* make sure we never look past the end of either string in ldb_comparison_fold()Andrew Tridgell2009-08-071-26/+44
| | | | | This fixes a bug in the samba3sam test with the python libraries as noticed by abartlet
* s4:ldb: add support for the new Recycle Bin Feature LDAP controlsStefan Metzmacher2009-07-231-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
* remove all '\n' from ldb_debugSumit Bose2009-07-145-20/+21
|