This is useful for speed tests with large numbers of records.
#include "tools/cmdline.h"
static int failures;
+static struct ldb_cmdline *options;
static void usage(void)
{
failures++;
} else {
(*count)++;
+ if (options->verbose) {
+ printf("Added %s\n", ldb_dn_get_linearized(ldif->msg->dn));
+ }
}
ldb_ldif_read_free(ldb, ldif);
}
{
struct ldb_context *ldb;
int i, ret=0, count=0;
- struct ldb_cmdline *options;
ldb = ldb_init(NULL, NULL);
#include "tools/cmdline.h"
static int failures;
+static struct ldb_cmdline *options;
static void usage(void)
{
failures++;
} else {
(*count)++;
+ if (options->verbose) {
+ printf("Modified %s\n", ldb_dn_get_linearized(ldif->msg->dn));
+ }
}
ldb_ldif_read_free(ldb, ldif);
}
struct ldb_context *ldb;
int count=0;
int i, ret=LDB_SUCCESS;
- struct ldb_cmdline *options;
ldb = ldb_init(NULL, NULL);