1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

s4-dsdb: use ldb_msg_normalize() in ldbadd-process_file()

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Kamen Mazdrashki 2010-07-16 14:03:53 +03:00 committed by Andrew Bartlett
parent 2ad701911e
commit d71b20e8dc

View File

@ -68,7 +68,15 @@ static int process_file(struct ldb_context *ldb, FILE *f, unsigned int *count)
break;
}
ldif->msg = ldb_msg_canonicalize(ldb, ldif->msg);
ret = ldb_msg_normalize(ldb, ldif, ldif->msg, &ldif->msg);
if (ret != LDB_SUCCESS) {
fprintf(stderr,
"ERR: Message canonicalize failed - %s\n",
ldb_strerror(ret));
failures++;
ldb_ldif_read_free(ldb, ldif);
continue;
}
ret = ldb_add_ctrl(ldb, ldif->msg,req_ctrls);
if (ret != LDB_SUCCESS) {