diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-07-29 18:47:24 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-07-29 20:59:53 +1000 |
commit | 1547d5fe003461c99238909d804973fc2659c847 (patch) | |
tree | 60c19f315ae36ad6d9bbb4ac7f004f6745b7e90a /source4/dsdb/repl | |
parent | de0b902ffaf04d60ef90727d807c9d06a5561d8e (diff) | |
download | samba-1547d5fe003461c99238909d804973fc2659c847.tar.gz samba-1547d5fe003461c99238909d804973fc2659c847.tar.xz samba-1547d5fe003461c99238909d804973fc2659c847.zip |
s4-repl: Use ldb_dn_new() to create the rootDSE DN
Based on a patch proposal by Matthieu Patou <mat@matws.net>.
Andrew Bartlett
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r-- | source4/dsdb/repl/replicated_objects.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 2c40159677..dadb9a1891 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -657,7 +657,11 @@ WERROR dsdb_replicated_objects_commit(struct ldb_context *ldb, if (msg == NULL) { return WERR_NOMEM; } - msg->dn = NULL; + msg->dn = ldb_dn_new(msg, ldb, ""); + if (msg->dn == NULL) { + talloc_free(msg); + return WERR_NOMEM; + } ret = ldb_msg_add_string(msg, "schemaUpdateNow", "1"); if (ret != LDB_SUCCESS) { |