summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools
AgeCommit message (Collapse)AuthorFilesLines
2010-09-11ldb:tools/cmdline.c - reorganise importsMatthias Dieter Wallnöfer1-6/+2
2010-09-11ldb:tools/cmdline.c - make a counter unsigned where appropriateMatthias Dieter Wallnöfer1-1/+1
2010-09-11s4:ldb_register_samba_handlers - fix up and convert result codes to LDB/LDAP ↵Matthias Dieter Wallnöfer1-1/+1
results
2010-09-01s4/ldb: fix standalone buildBjörn Jacke1-2/+6
2010-08-31s4/ldb: use monotonic clock for time deltas in ldbtestBjörn Jacke1-4/+4
2010-07-19s4: Remove trailing whitespacesKamen Mazdrashki2-13/+13
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-dsdb: use ldb_msg_normalize() in ldbadd-process_file()Kamen Mazdrashki1-1/+9
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s4-tools: use ldb_msg_difference() in ldbedit - modify_record()Kamen Mazdrashki1-6/+10
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-05-31ldb: Fix dependencies when building with system ldb.Jelmer Vernooij4-4/+24
2010-05-21s4:ldb: add --controls support to ldbeditStefan Metzmacher1-5/+12
metze
2010-05-02s4-ldb: use a parent context in the ldb utilsAndrew Tridgell6-12/+20
This avoids a talloc free with references error on exit
2010-04-11subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij1-1/+1
Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit.
2010-03-25s4-ldb: removed unused command line options -I and -OAndrew Tridgell2-4/+0
These are not used anywehere, so they just confuse people Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-03-06LDB:tools - change counters to be unsignedMatthias Dieter Wallnöfer6-32/+38
In most cases we do count LDB objects which are enumerated within the "unsigned" type. Therefore no need to use "signed" counters.
2010-02-25s4:ldb Fix segfault in ldbsearch store_referral callbackAndrew Bartlett1-6/+1
sctx->refs_store was not initialised, and that made talloc_realloc grumpy once we started actually returning referrals regularly from Samba4's partitions module (0be57c747825737fa9d64411223e693b055b5f8f by mdw). We now just use talloc_zero() and forget about this manual initialisation work. Tracking down use of uninitialised variables with valgrind was the grand idea when this started, but in practice we just get segfaults in unusual places. Andrew Bartlett
2010-02-14s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb codeAndrew Tridgell1-6/+4
2010-02-13s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()Andrew Tridgell1-2/+1
2010-01-21s4: Fix a few warnings.Jelmer Vernooij1-0/+2
2010-01-10s4-ldb: display security descriptors with correct SDL for known SIDsAndrew Tridgell1-0/+6
This makes it much easier to compare SDs
2010-01-02s4-ldb: show an error string, as well as error messageAndrew Tridgell1-3/+4
This makes it easier to track down error mismatches from the test suite
2010-01-02s4-ldbmodify: show the error code as well as error stringAndrew Tridgell1-1/+2
2010-01-02s4-ldb: show the error code as well as errstrAndrew Tridgell1-2/+3
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2009-12-23s4:ldb Fix declaration in the middle of the codeSimo Sorce1-2/+4
2009-12-23s4: Fix the buildSimo Sorce1-0/+1
2009-12-23s4: make ldbadd/ldbmodify/ldbdelete really use the --controls switchMatthieu Patou6-9/+230
2009-12-18s4-ldb: fixed a valgrind error in ldbtestAndrew Tridgell1-0/+2
we were using msg->dn after the ldb it contained had been freed Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2009-12-16s4-ldb: added --show-deactivated-link command line optionAndrew Tridgell1-1/+8
this adds the SHOW_DEACTIVATED_LINK control
2009-12-14s4-ldb: added a new "reveal" controlAndrew Tridgell1-0/+7
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.
2009-12-08s4-ldb: fixed ldbdel with -r (recursive deletion)Andrew Tridgell1-0/+15
We need to delete the deepest DNs first
2009-12-01s4-ldb: the '1' form of extended_dn search is easier to readAndrew Tridgell1-1/+1
The '1' form gives GUIDs and SIDs in the ascii form as normally used for display.
2009-11-28s4-ldb: make it much easier to use common ldb controlsAndrew Tridgell2-15/+64
2009-11-27s4-ldb: better to test for valid arguments in ldb library than commandlineAndrew Tridgell1-9/+0
We were testing for valid DNs in ldbrename in the command line tool. This hid a bug in the ldb library where we caught a bad DN in the objectclass module rather than in the main ldb code. It is better to do validation of the DNs passed on the command line in the library code, as this gives us more consistent error handling between the programming APIs for ldb and the command line.
2009-11-20s4-ldb: when -v is specified, show progress of ldbadd/ldbmodifyAndrew Tridgell2-2/+8
This is useful for speed tests with large numbers of records.
2009-11-20s4-ldb: make ldb tools line bufferedAndrew Tridgell1-0/+3
this prevents output being buffered when redirected to a file. Useful for larger ldb command line operations
2009-10-23s4-dsdb: create a static system_session contextAndrew Tridgell1-1/+1
This patch adds a system_session cache, preventing us from having to recreate it on every ldb open, and allowing us to detect when the same session is being used in ldb_wrap
2009-09-21s4-ldb: add --trace command line option to ldb toolsAndrew Tridgell2-0/+6
This enabled LDB_FLG_ENABLE_TRACING
2009-09-08s4/ldb: added --show-binary command line optionAndrew Tridgell2-0/+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-04ldb: ensure we cancel a ldb transactionAndrew Tridgell2-3/+9
When we fail a ldbadd or ldbedit we should cancel the transaction to prevent ldb giving a warning about having a open transaction in the ldb destructor
2009-09-02show the full set of command line options for ldb toolsAndrew Tridgell5-29/+6
I always found it hard to remember some of the options. We might as well use popt to give us the full list
2009-09-02use ldb_cmdline_help() in ldbsearchAndrew Tridgell2-8/+3
2009-09-02added ldb_cmdline_help()Andrew Tridgell1-29/+36
This allows the ldb tools to show their full command line options
2009-06-18Fix resource leak in lib/ldb/tools/ldbmodify.cSlava Semushin1-0/+1
Patch for bug #6389
2009-03-05Remove parse_control from header, long after the function was removedAndrew Bartlett1-1/+0
Simo reminded me that when (long ago) I moved parse_controls away from this place, I forgot to update the manually maintained header file. Andrew Bartlett
2009-02-23Fix headers, ldb_includes.h is a private header,Simo Sorce4-1/+4
do not reference it from ldb.h
2009-01-30Fix the mess with ldb includes.Simo Sorce8-11/+11
Separate again the public from the private headers. Add a new header specific for modules. Also add service function for modules as now ldb_context and ldb_module are opaque structures for them.
2009-01-22Do not start a transaction this way.Simo Sorce1-10/+0
Because we still want to commit any changes that successfully apply we never want to do a global cancel, and because of how transaction nesting works that means we never cancel any "transaction" at the single modify operation level. Let each operation start its own transaction so that the transaction is properly canceled if any error is returned and half committed operations (though plugins failing) are properly reverted on a per operation basis.
2008-12-18Parse options (and open the database) before starting transactionsAndrew Bartlett1-2/+2
2008-12-18Print error strings when transactions fail in ldb toolsAndrew Bartlett3-6/+6
2008-12-16use transactions in ldbadd, ldbmodify and ldbeditAndrew Tridgell3-0/+30
The command line tools ldbadd, ldbmodify and ldbedit should operate within a transaction to make them more efficient. The ldbadd tool in particular is much faster when adding a large number of records if all the adds happen within a transaction. Previously there was a transaction per record.
2008-09-29LDB ASYNC: ldb misc changesSimo Sorce1-34/+42