summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/include
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-ldb: added ldb_error() and ldb_operr()Andrew Tridgell2010-07-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | These will be used to help avoid the problem we have with hundreds of places that do "return LDB_ERR_OPERATIONS_ERROR" without an explanation. It is very difficult to track down ldb errors which don't have any explanation. By replacing "return LDB_ERR_OPERATIONS_ERROR;" with "return ldb_operr(ldb);" we at least get a file:line message in the ldb error string. It isn't an ideal error message, but it is much better than just "operations error" This change also makes ldb_oom() return the error code (LDB_ERR_OPERATIONS_ERROR) so you can do: return ldb_oom(ldb); instead of: ldb_oom(ldb); return LDB_ERR_OPERATIONS_ERROR;
* s4-ldb: added ldb_options_find()Andrew Tridgell2010-07-071-0/+6
| | | | | | | ldb_options_find() allows backends to find options in the options[] array passed to the connect operation. This will be used by the ldb_ldap bind code
* ldb:controls - add the "TREE_DELETE" control for allowing subtree deletesMatthias Dieter Wallnöfer2010-06-201-0/+7
|
* ldb:ldb.h - add classifications to the control declarationsMatthias Dieter Wallnöfer2010-06-201-7/+13
| | | | This makes it easier to understand which standard specifies which control.
* ldb: add a new control bypassioperationnalMatthieu Patou2010-06-201-0/+9
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Support system talloc/tevent headers.Jelmer Vernooij2010-06-131-2/+2
|
* ldb: Remove unexisting and mistyped function from headerSimo Sorce2010-05-311-2/+0
|
* s4/rodc: Support read-only databaseAnatoliy Atanasov2010-05-041-0/+1
| | | | | | Check on modify if we are RODC and return referral. On the ldap backend side now we pass context and ldb_modify_default_callback to propagate the referral error to the client.
* LDB related spelling fixes.Brad Hards2010-02-221-1/+1
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb codeAndrew Tridgell2010-02-141-0/+11
|
* s4-ldb: added LDB_TYPESAFE_QSORT()Andrew Tridgell2010-02-131-0/+18
| | | | Like TYPESAFE_QSORT() but for the ldb_qsort() function
* util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1)Andrew Tridgell2010-02-101-59/+111
| | | | | | | | | | | | | | This changes the meaning of the ->prev pointer in our doubly linked lists to point at the end of the list from the front of the list. That allows us to implement DLIST_ADD_END() and related functions in O(1) time, which can be a huge saving in many places in Samba. This also means that the 'type' argument to various DLIST_*() macros is no longer needed, but I have left it in for now to keep the patchset small, which will make it easier to revert if any problems are found. In the future we should remove the 'type' arguments. (jra. Move the one use of DLIST_TAIL over to the new macros).
* Temporary changes to dlinklist to keep the implementation static whilstJeremy Allison2010-02-101-0/+16
| | | | | | | uses of (list)->prev are moved over to DLIST_PREV. This will be replaced when the final (new) version of the dlinklist.h header is added. Jeremy.
* s4-ldb: declate ldb_val_to_time()Andrew Tridgell2010-01-021-0/+6
|
* s4-ldb: added ldb_module_get_ops()Andrew Tridgell2010-01-021-0/+1
| | | | | | This is needed to support DSDB_FLAG_OWN_MODULE Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Added oid for AS_SYSTEM control, used to bypass access checks for system ↵Nadezhda Ivanova2009-12-181-0/+6
| | | | operations.
* s4-dsdb: declare ldb_dn_update_components()Andrew Tridgell2009-12-181-0/+1
|
* Removed ldb_modify_ctrl from ldb, implemented as a static in ldap_backend.Nadezhda Ivanova2009-12-151-18/+0
|
* s4-ldb: added a new "reveal" controlAndrew Tridgell2009-12-141-1/+9
| | | | | | This control will allow inspection of internal ldb values, which would normally be stripped before being presented to users. The first use will be stripping linked attribute meta data extended components.
* s4:ldb Add a function to match a message against an objectClassAndrew Bartlett2009-12-071-0/+3
| | | | | | | (as objectClass will always be a case insensitive ascii string, we can make a much simpler match function here than for the general case). Andrew Bartlett
* s4-ldb: changed ldb_msg_add_dn() to ldb_msg_add_linearized_dn()Crístian Deives2009-11-301-2/+2
| | | | | | this makes the usage clearer Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4: fix SD update and password change in upgrade scriptMatthieu Patou2009-11-281-0/+6
| | | | | | | | | - reserve a new Samba OID for recalculate SD control - fix the update SD function - fix handling of kvno in the update_machine_account_password function - fix handling of handles in RPC winreg server Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Some changes to allow processing of ldap controls on modify requests.Nadezhda Ivanova2009-11-201-0/+18
| | | | | ldap_backend used to filter out ldap controls on modify. Also, modified python binding for ldap_modify to allow writing tests for such controls.
* added new function "ldb_msg_add_dn"Crístian Deives2009-11-201-0/+2
| | | | | | a helper function to a DN element to an ldb_msg using ldb_msg_add_string. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:ldb Add a helper function for 'canonicalise' both strings base comparesAndrew Bartlett2009-11-121-0/+6
| | | | | | | This will help simplify boilerplate comparison functions where we don't have a shortcut way to compare. Andrew Bartlett
* s4-ldb: added ldb_transaction_cancel_noerr()Andrew Tridgell2009-10-231-0/+6
| | | | | This will be used to allow cancelling of transactions in a child after a fork()
* s4-ldb: ldb_oom() for modulesAndrew Tridgell2009-10-221-0/+1
|
* s4:ldb Add new function to create a cut down list of controlsAndrew Bartlett2009-10-211-0/+6
| | | | | | 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/+11
|
* s4:ldb_msg_check_string_attribute - add a comment about the result valuesMatthias Dieter Wallnöfer2009-10-181-0/+9
|
* s4:ldb.h - add constant for LDAP EXOP password changeMatthias Dieter Wallnöfer2009-10-031-4/+21
| | | | Also enhance some other comments.
* s4:ldb.h - cosmetic - add whitespaceMatthias Dieter Wallnöfer2009-10-021-1/+1
|
* s4:dsdb Add 'lazy_commit' module to swallow the 'lazy commit' OIDAndrew Bartlett2009-10-021-0/+9
| | | | | | | | | | | This allows this control to be specified as critical. We support the control because we choose to always be durable in our transactions. We really, really need a 'duplicate request' API, as at the moment we can't do this without a large, error-prone set of code that cannot cope with new request fields or types. Andrew Bartlett
* s4-ldb: Add new relax controls that allow relaxed x500 constraints checksMatthieu Patou2009-10-021-0/+8
|
* s4-ldb: Add support for binary blobs in DNsAndrew Tridgell2009-10-021-0/+7
| | | | | | | | | | | | | | | 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: server side sort args are const char *Andrew Tridgell2009-09-221-2/+2
|
* s4-ldb: only show the outer level of ldb ops when tracingAndrew Tridgell2009-09-221-0/+1
|
* s4-ldb: don't show timestamps on every line of ldb tracesAndrew Tridgell2009-09-222-0/+4
| | | | | This adds ldb_debug_add() and ldb_debug_end() to format multiline messages
* s4:ldb Add 'single-value' support to LDB.Andrew Bartlett2009-09-211-0/+5
| | | | This is currently only triggered via Samba4's schema code.
* s4-ldb: add a LDB_FLG_ENABLE_TRACING for full ldb tracingAndrew Tridgell2009-09-211-0/+9
| | | | | When LDB_FLG_ENABLE_TRACING is set ldb will send full traces of all operations and results
* s4:ldb: add ldb_parse_tree_copy_shallow() and change version to 0.9.7Stefan Metzmacher2009-09-201-0/+6
| | | | metze
* s4-ldb: expose ldb_transaction_prepare_commit() in ldbAndrew Tridgell2009-09-152-0/+7
| | | | | 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: expose the ldb flags with ldb_get_flags()Andrew Tridgell2009-09-081-0/+5
|
* s4/ldb: added --show-binary command line optionAndrew Tridgell2009-09-082-1/+7
| | | | | | | 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.
* s4/ldb: fixed spellingAndrew Tridgell2009-09-081-2/+2
|
* s4:ldb_errors - add spacesMatthias Dieter Wallnöfer2009-09-061-0/+2
|
* ldb: make ldb module programming less error proneAndrew Tridgell2009-09-041-0/+3
| | | | | | | | | | | | | 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-031-0/+1
| | | | | | | | | | 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.
* added ldb_ldif_message_string()Andrew Tridgell2009-09-021-0/+12
| | | | | | 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.