summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij2010-04-111-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.
* s4-ldb: removed unused command line options -I and -OAndrew Tridgell2010-03-252-4/+0
| | | | | | These are not used anywehere, so they just confuse people Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* LDB:tools - change counters to be unsignedMatthias Dieter Wallnöfer2010-03-066-32/+38
| | | | | In most cases we do count LDB objects which are enumerated within the "unsigned" type. Therefore no need to use "signed" counters.
* s4:ldb Fix segfault in ldbsearch store_referral callbackAndrew Bartlett2010-02-251-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
* s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb codeAndrew Tridgell2010-02-141-6/+4
|
* s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()Andrew Tridgell2010-02-131-2/+1
|
* s4: Fix a few warnings.Jelmer Vernooij2010-01-211-0/+2
|
* s4-ldb: display security descriptors with correct SDL for known SIDsAndrew Tridgell2010-01-101-0/+6
| | | | This makes it much easier to compare SDs
* s4-ldb: show an error string, as well as error messageAndrew Tridgell2010-01-021-3/+4
| | | | | This makes it easier to track down error mismatches from the test suite
* s4-ldbmodify: show the error code as well as error stringAndrew Tridgell2010-01-021-1/+2
|
* s4-ldb: show the error code as well as errstrAndrew Tridgell2010-01-021-2/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:ldb Fix declaration in the middle of the codeSimo Sorce2009-12-231-2/+4
|
* s4: Fix the buildSimo Sorce2009-12-231-0/+1
|
* s4: make ldbadd/ldbmodify/ldbdelete really use the --controls switchMatthieu Patou2009-12-236-9/+230
|
* s4-ldb: fixed a valgrind error in ldbtestAndrew Tridgell2009-12-181-0/+2
| | | | | | we were using msg->dn after the ldb it contained had been freed Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added --show-deactivated-link command line optionAndrew Tridgell2009-12-161-1/+8
| | | | this adds the SHOW_DEACTIVATED_LINK control
* s4-ldb: added a new "reveal" controlAndrew Tridgell2009-12-141-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.
* s4-ldb: fixed ldbdel with -r (recursive deletion)Andrew Tridgell2009-12-081-0/+15
| | | | We need to delete the deepest DNs first
* s4-ldb: the '1' form of extended_dn search is easier to readAndrew Tridgell2009-12-011-1/+1
| | | | | The '1' form gives GUIDs and SIDs in the ascii form as normally used for display.
* s4-ldb: make it much easier to use common ldb controlsAndrew Tridgell2009-11-282-15/+64
|
* s4-ldb: better to test for valid arguments in ldb library than commandlineAndrew Tridgell2009-11-271-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.
* s4-ldb: when -v is specified, show progress of ldbadd/ldbmodifyAndrew Tridgell2009-11-202-2/+8
| | | | This is useful for speed tests with large numbers of records.
* s4-ldb: make ldb tools line bufferedAndrew Tridgell2009-11-201-0/+3
| | | | | this prevents output being buffered when redirected to a file. Useful for larger ldb command line operations
* s4-dsdb: create a static system_session contextAndrew Tridgell2009-10-231-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
* s4-ldb: add --trace command line option to ldb toolsAndrew Tridgell2009-09-212-0/+6
| | | | This enabled LDB_FLG_ENABLE_TRACING
* s4/ldb: added --show-binary command line optionAndrew Tridgell2009-09-082-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.
* ldb: ensure we cancel a ldb transactionAndrew Tridgell2009-09-042-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
* show the full set of command line options for ldb toolsAndrew Tridgell2009-09-025-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
* use ldb_cmdline_help() in ldbsearchAndrew Tridgell2009-09-022-8/+3
|
* added ldb_cmdline_help()Andrew Tridgell2009-09-021-29/+36
| | | | This allows the ldb tools to show their full command line options
* Fix resource leak in lib/ldb/tools/ldbmodify.cSlava Semushin2009-06-181-0/+1
| | | | Patch for bug #6389
* Remove parse_control from header, long after the function was removedAndrew Bartlett2009-03-051-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
* Fix headers, ldb_includes.h is a private header,Simo Sorce2009-02-234-1/+4
| | | | do not reference it from ldb.h
* Fix the mess with ldb includes.Simo Sorce2009-01-308-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.
* Do not start a transaction this way.Simo Sorce2009-01-221-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.
* Parse options (and open the database) before starting transactionsAndrew Bartlett2008-12-181-2/+2
|
* Print error strings when transactions fail in ldb toolsAndrew Bartlett2008-12-183-6/+6
|
* use transactions in ldbadd, ldbmodify and ldbeditAndrew Tridgell2008-12-163-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.
* LDB ASYNC: ldb misc changesSimo Sorce2008-09-291-34/+42
|
* Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce2008-09-233-4/+4
| | | | | The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
* fixed a problem with length limited ldap valuesAndrew Tridgell2008-08-221-1/+1
| | | | | | | | | | The core ldb code for string matching assumed NULL terminated strings, whereas the anr module used data_blob_const() to effectively truncate a ldb_val by changing its length. The ldb code is supposed to be based around length limited blobs, not NULL terminated strings, so the correct fix was to change the string comparison functions to be length limited (This used to be commit 26c6aa5a80ffaf06fc33f30a6533f8f16ef538bc)
* lib/ldb/tools: allow -W and --realm when build from samba4Stefan Metzmacher2008-07-261-0/+1
| | | | | metze (This used to be commit 0aa6d63ec571b0ca05fbfe14d2b4e9ba3e1082e9)
* Move ad2oLschema and oLschema2ldif into Samba4, out of LDBAndrew Bartlett2008-07-024-1586/+0
| | | | | | | | | | LDB does not know about nor process the AD schema, so it makes no sense to have this tool there. I've been changing it anyway, to use a common schema manipulation library, and will enhance these links in the future. Andrew Bartlett (This used to be commit c7704805b9a3541e4c8768278c8289b0aa6ed5e3)
* Collapse auxillary classes in LDAP schema conversion.Andrew Bartlett2008-07-021-4/+106
| | | | | | | | | | | MS-ADTS 3.1.1.3.1.1.5 describes the behaviour of auxiliary classes. In effect, these are additional MUST or MAY attributes that are appeneded to the parent class (the auxiliary does not become listed in the objectClass attribute), and so we do just that, and merge them here, for export to OpenLDAP as it's schema. Andrew Bartlett (This used to be commit d674e92591ea90eb3b2117d8dd21f79f718d7730)
* Use ldbsrcdir rather than ldbdir.Jelmer Vernooij2008-06-251-14/+14
| | | | (This used to be commit a422c6c5ff47f36ef3376f54e707561c6a53ac23)
* Make up the right dependencies now that ldb depends on libeventsSimo Sorce2008-06-149-10/+13
| | | | (This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
* Revert Jelmer's CFLAGS commit e2b71a0ecbf10a78a59a8ec6371bdee57b1bfa6cAndrew Bartlett2008-05-311-8/+2
| | | | | | | | This commit broke the build, because not all files (libreplace, popt) were updated. Andrew Bartlett (This used to be commit 3faacf4351d68a10aea78b53768571d2059772ae)
* Move CFLAGS handling out of smb_build.Jelmer Vernooij2008-05-301-2/+8
| | | | (This used to be commit e2b71a0ecbf10a78a59a8ec6371bdee57b1bfa6c)
* Use variable for ldb source directory.Jelmer Vernooij2008-05-271-8/+8
| | | | (This used to be commit 48bfce0ea51b952baef5bfa667405e8742e5016f)
* Cope with an empty mapping file in ad2oLschemaAndrew Bartlett2008-05-061-2/+2
| | | | (This used to be commit 5f36a605a9accfba1125bbae0e79bb14b936173c)