summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-24 01:58:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:45 -0500
commitb818ff3ede56ab905418dddbc0bdc2011ebf62ab (patch)
tree2fc2d2f66a2afd4af31dcc10c57b8ae72754fe41 /source4
parenta6e921fc814aa9ad4884371742d4c7dede655a6a (diff)
downloadsamba-b818ff3ede56ab905418dddbc0bdc2011ebf62ab.tar.gz
samba-b818ff3ede56ab905418dddbc0bdc2011ebf62ab.tar.bz2
samba-b818ff3ede56ab905418dddbc0bdc2011ebf62ab.zip
r7868: canonicalise the message before using ldb_add() in the ldbadd utility.
(This used to be commit 56f4af5f210da472d41d9bcf6918647181f6ad16)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/tools/ldbadd.c2
1 files changed, 2 insertions, 0 deletions
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",