summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools
AgeCommit message (Collapse)AuthorFilesLines
2011-05-21ldb:tools/cmdline.c + tools/ldbtest.c - the connection flags are typed as ↵Matthias Dieter Wallnöfer2-2/+2
"unsigned" Signed-off-by: Metze
2011-05-21ldb:ldbtest.c - make more use of LDB constantsMatthias Dieter Wallnöfer1-4/+4
Signed-off-by: Metze
2011-04-29ldb:tools/cmdline.c + tools/ldbtest.c - make use of LDB result constantsMatthias Dieter Wallnöfer2-2/+2
Reviewed-by: abartlet
2011-04-21s4:ldb/tools: add support for "modrdn" to ldbmodifyStefan Metzmacher1-1/+23
Signed-off-by: Simo Sorce <idra@samba.org> metze
2011-04-07ldb:ldbadd/modify tool - return error code when at least one operation has ↵Matthias Dieter Wallnöfer2-5/+8
failed This is required to better detect failures and should raise the compatiblity to "ldapadd"/"ldapmodify". Reviewed-by: abartlet
2011-03-29ldb: detect eof on ldif filesAndrew Tridgell2-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
2011-03-04s4/ldb - remove now superflous "ldb_dn_validate" checksMatthias Dieter Wallnöfer4-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
2011-03-04ldb:ldb tools - remove a superflous "return" (usage internally calls "exit")Matthias Dieter Wallnöfer1-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
2011-03-04ldb:ldb tools - return LDB_ERR_INVALID_DN_SYNTAX on wrong DN parametersMatthias Dieter Wallnöfer5-5/+9
Not all LDB databases have further DN checks. Reviewed by: Tridge
2011-03-04ldb:ldb tools - ldbtest - convert other result values to LDB codes as wellMatthias Dieter Wallnöfer1-15/+15
I've forgotten this in my first patchset. Reviewed by: Tridge
2011-02-09ldb:tools - return LDB_ERR_OPERATIONS_ERROR on generic errorsMatthias Dieter Wallnöfer8-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.
2011-02-09ldb:tools - always check if ldb connection has been estabilishedMatthias Dieter Wallnöfer7-1/+19
Otherwise return "LDB_ERR_OPERATIONS_ERROR".
2011-02-09ldb:ldbsearch tool - use LDB result constants where possibleMatthias Dieter Wallnöfer1-7/+7
2011-02-09ldb:ldbsearch tool - simplify error code returnMatthias Dieter Wallnöfer1-3/+1
2011-02-09ldb:ldbsearch tool - use "%u" for printing unsigned integersMatthias Dieter Wallnöfer1-1/+1
2011-02-09ldb:ldbedit tool - don't forget about the "do_edit" result codeMatthias Dieter Wallnöfer1-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".
2011-02-09ldb:ldbedit tool - fix bug #7914Matthias Dieter Wallnöfer1-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).
2011-02-09ldb:ldbedit tool - use unsigned counters for consistency with other LDB toolsMatthias Dieter Wallnöfer1-2/+2
2011-02-09ldb:ldbedit tool - use "%u" for printing out unsigned integersMatthias Dieter Wallnöfer1-2/+2
2011-02-09ldb:ldbedit tool - use LDB result constants where neededMatthias Dieter Wallnöfer1-5/+5
2011-02-09ldb:ldbrename tool - use LDB result constant where neededMatthias Dieter Wallnöfer1-1/+1
2011-02-09ldb:ldbmodify tool - use unsigned counters for consistency with other LDB toolsMatthias Dieter Wallnöfer1-5/+5
2011-02-09ldb:ldbdel tool - use LDB result constants for consistencyMatthias Dieter Wallnöfer1-7/+7
2011-02-09ldb:ldbadd tool - use LDB return codes where possibleMatthias Dieter Wallnöfer1-4/+6
2011-02-09ldb:ldbadd tool - use "%u" for printing out unsigned integersMatthias Dieter Wallnöfer1-1/+1
2011-02-09ldb:ldbadd tool - use LDB result constants for consistencyMatthias Dieter Wallnöfer1-4/+4
2011-01-12ldb:ldbsearch.c - fix possible uninitialised variableMatthias Dieter Wallnöfer1-2/+2
And add a comparison for the "ret" result - this is more standard-oriented
2011-01-03s4:ldb: Add prototype header.Brad Hards1-0/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-21ldb:tools/ldbdel.c - "replace.h" should be the first includeMatthias Dieter Wallnöfer1-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
2010-11-04s4-ldb: honor controls on search in ldbeditAndrew Tridgell3-1/+81
2010-11-03s4-ldb: expose some more ldb module functionsAndrew Tridgell1-4/+6
this exposes enough functions for s4 to not need ldb_private.h any more.
2010-11-01s4-ldb: removed ldb_includes.hAndrew Tridgell4-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
2010-11-01ldb:tools/ldbtest.c - fix build warningMatthias Dieter Wallnöfer2-2/+3
Cause was an incomplete declaration.
2010-11-01s4-ldb: convert existing ldb tools to use new command line hooksAndrew Tridgell7-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>
2010-11-01s4-ldb: added ldb command line hook supportAndrew Tridgell2-58/+31
ldb modules can now add hooks to the command line processing for ldb tools Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-01s4-test: we don't need to set LDB_MODULES_PATH any moreAndrew Tridgell1-2/+0
2010-10-31s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij1-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
2010-10-19s4-ldb: added --relax cmdline optionAndrew Tridgell1-0/+9
this adds the relax control
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.