summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-16 17:01:43 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-16 17:01:43 +0100
commite853dd763b56870643b135d3252ab0b3eaf25a00 (patch)
tree86613ed41ce0bcd364a871accb305119f0280d31
parentadff5ef28f8763c70aa24071940f4c3df4a5cc3a (diff)
downloadsamba-e853dd763b56870643b135d3252ab0b3eaf25a00.tar.gz
samba-e853dd763b56870643b135d3252ab0b3eaf25a00.tar.bz2
samba-e853dd763b56870643b135d3252ab0b3eaf25a00.zip
Revert "s4:dsdb/repl/replicated_objects - Applicate also here the new "lDAPDisplayName" generator"
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.
-rw-r--r--source4/dsdb/repl/replicated_objects.c5
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;
}