From b818ff3ede56ab905418dddbc0bdc2011ebf62ab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 24 Jun 2005 01:58:40 +0000 Subject: r7868: canonicalise the message before using ldb_add() in the ldbadd utility. (This used to be commit 56f4af5f210da472d41d9bcf6918647181f6ad16) --- source4/lib/ldb/tools/ldbadd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4') diff --git a/source4/lib/ldb/tools/ldbadd.c b/source4/lib/ldb/tools/ldbadd.c index 7794b9de39..5be3b7fc75 100644 --- a/source4/lib/ldb/tools/ldbadd.c +++ b/source4/lib/ldb/tools/ldbadd.c @@ -71,6 +71,8 @@ static int process_file(struct ldb_context *ldb, FILE *f) break; } + ldif->msg = ldb_msg_canonicalize(ldb, ldif->msg); + ret = ldb_add(ldb, ldif->msg); if (ret != 0) { fprintf(stderr, "ERR: \"%s\" on DN %s\n", -- cgit