Revert "s4:dsdb/repl/replicated_objects - Applicate also here the new "lDAPDisplayNam...
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 16 Nov 2009 16:01:43 +0000 (17:01 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 16 Nov 2009 16:01:43 +0000 (17:01 +0100)
This reverts commit df95d5c29292968b465bff24c3cf78800677a4d4.

abartlet pointed out in a post on the samba-technical list that this isn't
necessary at all (lDAPDisplayName normalisation algorithm). Rather it breaks
functionality of the replication.

source4/dsdb/repl/replicated_objects.c

index 043c620f523b20834f2df04b1c68209b1d43d91e..020d5f1b0714a7a4e7add1c31230d67c82e6a669 100644 (file)
@@ -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;
                        }