diff options
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r-- | source4/dsdb/repl/replicated_objects.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 043c620f52..020d5f1b07 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -153,10 +153,7 @@ static WERROR dsdb_convert_object_ex(struct ldb_context *ldb, struct ldb_message_element *el; el = ldb_msg_find_element(msg, rdn_attr->lDAPDisplayName); if (!el) { - /* we assume that the RDN has prefix "CN" */ - ret = ldb_msg_add_string(msg, rdn_attr->lDAPDisplayName, - samdb_cn_to_lDAPDisplayName(mem_ctx, - (const char *) rdn_value->data)); + ret = ldb_msg_add_value(msg, rdn_attr->lDAPDisplayName, rdn_value, NULL); if (ret != LDB_SUCCESS) { return WERR_FOOBAR; } |