diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/repl/replicated_objects.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 020d5f1b07..043c620f52 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -153,7 +153,10 @@ 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) { - ret = ldb_msg_add_value(msg, rdn_attr->lDAPDisplayName, rdn_value, NULL); + /* 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)); if (ret != LDB_SUCCESS) { return WERR_FOOBAR; } |