summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/tools
Commit message (Collapse)AuthorAgeFilesLines
* ldb: make ldb a top level library for Samba 4.0Andrew Bartlett2011-07-0511-2442/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:tools/cmdline.c + tools/ldbtest.c - the connection flags are typed as ↵Matthias Dieter Wallnöfer2011-05-212-2/+2
| | | | | | "unsigned" Signed-off-by: Metze
* ldb:ldbtest.c - make more use of LDB constantsMatthias Dieter Wallnöfer2011-05-211-4/+4
| | | | Signed-off-by: Metze
* ldb:tools/cmdline.c + tools/ldbtest.c - make use of LDB result constantsMatthias Dieter Wallnöfer2011-04-292-2/+2
| | | | Reviewed-by: abartlet
* s4:ldb/tools: add support for "modrdn" to ldbmodifyStefan Metzmacher2011-04-211-1/+23
| | | | | | Signed-off-by: Simo Sorce <idra@samba.org> metze
* ldb:ldbadd/modify tool - return error code when at least one operation has ↵Matthias Dieter Wallnöfer2011-04-072-5/+8
| | | | | | | | | failed This is required to better detect failures and should raise the compatiblity to "ldapadd"/"ldapmodify". Reviewed-by: abartlet
* ldb: detect eof on ldif filesAndrew Tridgell2011-03-292-0/+20
| | | | | | | use feof() to detect parsing errors in ldif files Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Mar 29 08:24:04 CEST 2011 on sn-devel-104
* s4/ldb - remove now superflous "ldb_dn_validate" checksMatthias Dieter Wallnöfer2011-03-044-12/+8
| | | | | | | If we immediately afterwards perform an LDB base operation then we don't need an explicit "ldb_dn_validate" check anymore (only OOM makes sense). Reviewed by: Tridge
* ldb:ldb tools - remove a superflous "return" (usage internally calls "exit")Matthias Dieter Wallnöfer2011-03-041-1/+0
| | | | | | | Reviewed by: Tridge Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Mar 4 09:39:22 CET 2011 on sn-devel-104
* ldb:ldb tools - return LDB_ERR_INVALID_DN_SYNTAX on wrong DN parametersMatthias Dieter Wallnöfer2011-03-045-5/+9
| | | | | | Not all LDB databases have further DN checks. Reviewed by: Tridge
* ldb:ldb tools - ldbtest - convert other result values to LDB codes as wellMatthias Dieter Wallnöfer2011-03-041-15/+15
| | | | | | I've forgotten this in my first patchset. Reviewed by: Tridge
* ldb:tools - return LDB_ERR_OPERATIONS_ERROR on generic errorsMatthias Dieter Wallnöfer2011-02-098-19/+20
| | | | | | | | Use "return" when located in "main" for consistency ("exit" would do the same). The patchset has been discussed with Jelmer Vernooij and afterwards LDB maintainer Simo Sorce.
* ldb:tools - always check if ldb connection has been estabilishedMatthias Dieter Wallnöfer2011-02-097-1/+19
| | | | Otherwise return "LDB_ERR_OPERATIONS_ERROR".
* ldb:ldbsearch tool - use LDB result constants where possibleMatthias Dieter Wallnöfer2011-02-091-7/+7
|
* ldb:ldbsearch tool - simplify error code returnMatthias Dieter Wallnöfer2011-02-091-3/+1
|
* ldb:ldbsearch tool - use "%u" for printing unsigned integersMatthias Dieter Wallnöfer2011-02-091-1/+1
|
* ldb:ldbedit tool - don't forget about the "do_edit" result codeMatthias Dieter Wallnöfer2011-02-091-11/+4
| | | | | | Use it for computing the program exit code. The "result" has not to be free'd explicitly since it's a child by "ldb" which itself is child by "mem_ctx".
* ldb:ldbedit tool - fix bug #7914Matthias Dieter Wallnöfer2011-02-091-4/+7
| | | | | | | "modify_record" returns "-1" when failing, otherwise the number of modifies performed as an "unsigned int" converted to "int". When we get "-1" we immediately need to stop (the error message has already been generated by the function itself).
* ldb:ldbedit tool - use unsigned counters for consistency with other LDB toolsMatthias Dieter Wallnöfer2011-02-091-2/+2
|
* ldb:ldbedit tool - use "%u" for printing out unsigned integersMatthias Dieter Wallnöfer2011-02-091-2/+2
|
* ldb:ldbedit tool - use LDB result constants where neededMatthias Dieter Wallnöfer2011-02-091-5/+5
|
* ldb:ldbrename tool - use LDB result constant where neededMatthias Dieter Wallnöfer2011-02-091-1/+1
|
* ldb:ldbmodify tool - use unsigned counters for consistency with other LDB toolsMatthias Dieter Wallnöfer2011-02-091-5/+5
|
* ldb:ldbdel tool - use LDB result constants for consistencyMatthias Dieter Wallnöfer2011-02-091-7/+7
|
* ldb:ldbadd tool - use LDB return codes where possibleMatthias Dieter Wallnöfer2011-02-091-4/+6
|
* ldb:ldbadd tool - use "%u" for printing out unsigned integersMatthias Dieter Wallnöfer2011-02-091-1/+1
|
* ldb:ldbadd tool - use LDB result constants for consistencyMatthias Dieter Wallnöfer2011-02-091-4/+4
|
* ldb:ldbsearch.c - fix possible uninitialised variableMatthias Dieter Wallnöfer2011-01-121-2/+2
| | | | And add a comparison for the "ret" result - this is more standard-oriented
* s4:ldb: Add prototype header.Brad Hards2011-01-031-0/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* ldb:tools/ldbdel.c - "replace.h" should be the first includeMatthias Dieter Wallnöfer2010-12-211-1/+1
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Dec 21 12:50:54 CET 2010 on sn-devel-104
* s4-ldb: honor controls on search in ldbeditAndrew Tridgell2010-11-043-1/+81
|
* s4-ldb: expose some more ldb module functionsAndrew Tridgell2010-11-031-4/+6
| | | | | this exposes enough functions for s4 to not need ldb_private.h any more.
* s4-ldb: removed ldb_includes.hAndrew Tridgell2010-11-014-4/+12
| | | | | | | it causes problems with the openchange build as it is not installed Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 1 21:49:47 UTC 2010 on sn-devel-104
* ldb:tools/ldbtest.c - fix build warningMatthias Dieter Wallnöfer2010-11-012-2/+3
| | | | Cause was an incomplete declaration.
* s4-ldb: convert existing ldb tools to use new command line hooksAndrew Tridgell2010-11-017-31/+15
| | | | | | | the usage() function needs to take a ldb context, as the popt_options is specific to the ldb context Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added ldb command line hook supportAndrew Tridgell2010-11-012-58/+31
| | | | | | | ldb modules can now add hooks to the command line processing for ldb tools Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-test: we don't need to set LDB_MODULES_PATH any moreAndrew Tridgell2010-11-011-2/+0
|
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-103/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* s4-ldb: added --relax cmdline optionAndrew Tridgell2010-10-191-0/+9
| | | | this adds the relax control
* ldb:tools/cmdline.c - reorganise importsMatthias Dieter Wallnöfer2010-09-111-6/+2
|
* ldb:tools/cmdline.c - make a counter unsigned where appropriateMatthias Dieter Wallnöfer2010-09-111-1/+1
|
* s4:ldb_register_samba_handlers - fix up and convert result codes to LDB/LDAP ↵Matthias Dieter Wallnöfer2010-09-111-1/+1
| | | | results
* s4/ldb: fix standalone buildBjörn Jacke2010-09-011-2/+6
|
* s4/ldb: use monotonic clock for time deltas in ldbtestBjörn Jacke2010-08-311-4/+4
|
* s4: Remove trailing whitespacesKamen Mazdrashki2010-07-192-13/+13
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: use ldb_msg_normalize() in ldbadd-process_file()Kamen Mazdrashki2010-07-191-1/+9
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-tools: use ldb_msg_difference() in ldbedit - modify_record()Kamen Mazdrashki2010-07-191-6/+10
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* ldb: Fix dependencies when building with system ldb.Jelmer Vernooij2010-05-314-4/+24
|
* s4:ldb: add --controls support to ldbeditStefan Metzmacher2010-05-211-5/+12
| | | | metze
* s4-ldb: use a parent context in the ldb utilsAndrew Tridgell2010-05-026-12/+20
| | | | This avoids a talloc free with references error on exit