summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools/ldbadd.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/tools/ldbadd.c')
-rw-r--r--source4/lib/ldb/tools/ldbadd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/ldb/tools/ldbadd.c b/source4/lib/ldb/tools/ldbadd.c
index f022486db8..a87c99aaee 100644
--- a/source4/lib/ldb/tools/ldbadd.c
+++ b/source4/lib/ldb/tools/ldbadd.c
@@ -35,6 +35,7 @@
#include "tools/cmdline.h"
static int failures;
+static struct ldb_cmdline *options;
static void usage(void)
{
@@ -69,6 +70,9 @@ static int process_file(struct ldb_context *ldb, FILE *f, int *count)
failures++;
} else {
(*count)++;
+ if (options->verbose) {
+ printf("Added %s\n", ldb_dn_get_linearized(ldif->msg->dn));
+ }
}
ldb_ldif_read_free(ldb, ldif);
}
@@ -82,7 +86,6 @@ int main(int argc, const char **argv)
{
struct ldb_context *ldb;
int i, ret=0, count=0;
- struct ldb_cmdline *options;
ldb = ldb_init(NULL, NULL);