summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools/ldbtest.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-02 22:40:13 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-04 08:51:57 +0100
commitb50ebc3228c9b4eacbccaf1ec4572c3ee7b07e1c (patch)
treedf6a6102845bd055c9f757323b0ae8489c9954c9 /source4/lib/ldb/tools/ldbtest.c
parent1b9317381344c48be2d90353ba61490161615485 (diff)
downloadsamba-b50ebc3228c9b4eacbccaf1ec4572c3ee7b07e1c.tar.gz
samba-b50ebc3228c9b4eacbccaf1ec4572c3ee7b07e1c.tar.bz2
samba-b50ebc3228c9b4eacbccaf1ec4572c3ee7b07e1c.zip
ldb:ldb tools - return LDB_ERR_INVALID_DN_SYNTAX on wrong DN parameters
Not all LDB databases have further DN checks. Reviewed by: Tridge
Diffstat (limited to 'source4/lib/ldb/tools/ldbtest.c')
-rw-r--r--source4/lib/ldb/tools/ldbtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/ldbtest.c b/source4/lib/ldb/tools/ldbtest.c
index 15c1e8b61e..a9d8fafe81 100644
--- a/source4/lib/ldb/tools/ldbtest.c
+++ b/source4/lib/ldb/tools/ldbtest.c
@@ -264,8 +264,8 @@ static void start_test(struct ldb_context *ldb, unsigned int nrecords,
basedn = ldb_dn_new(ldb, ldb, options->basedn);
if ( ! ldb_dn_validate(basedn)) {
- printf("Invalid base DN\n");
- exit(LDB_ERR_OPERATIONS_ERROR);
+ printf("Invalid base DN format\n");
+ exit(LDB_ERR_INVALID_DN_SYNTAX);
}
printf("Adding %d records\n", nrecords);