summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-14 20:14:45 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-15 14:26:41 +0100
commitdf95d5c29292968b465bff24c3cf78800677a4d4 (patch)
treed6a8a6b136cb234213eb4a457231f30eef4df728 /source4
parent2c7294bd8faad339d090ee7a7d8d1bb44c9837fc (diff)
downloadsamba-df95d5c29292968b465bff24c3cf78800677a4d4.tar.gz
samba-df95d5c29292968b465bff24c3cf78800677a4d4.tar.bz2
samba-df95d5c29292968b465bff24c3cf78800677a4d4.zip
s4:dsdb/repl/replicated_objects - Applicate also here the new "lDAPDisplayName" generator
Also here we've to be sure to generate the attribute correctly if it doesn't exist yet.
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/repl/replicated_objects.c5
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;
}