When the plugin was adjusted to not use LDAP_DEPRECATED it was broken
and DNs where generated withouth the RDN attribute name part.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
>From 0fa84cf2ac08115da42418da917c056afcb9eedc Mon Sep 17 00:00:00 2001
From: Simo Sorce <sso...@redhat.com>
Date: Fri, 25 Feb 2011 13:11:34 -0500
Subject: [PATCH 3/8] Unbreak the ipa winsync plugin.

Fix RDN construction.

Fixes: https://fedorahosted.org/freeipa/ticket/1015
---
 .../ipa-slapi-plugins/ipa-winsync/ipa-winsync.c    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync.c b/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync.c
index 2c0f4d1d2438420a95950cb72bded9288e3abf79..b98a34d1fdefd454e1c1eb600513176a39892b26 100644
--- a/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync.c
+++ b/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync.c
@@ -403,7 +403,7 @@ ipa_winsync_get_new_ds_user_dn_cb(void *cbdata, const Slapi_Entry *rawentry,
         return;
     }
 
-    ldap_rdn2str(ldn[0], &rdn, LDAP_DN_FORMAT_UFN);
+    ldap_rdn2str(ldn[0], &rdn, LDAP_DN_FORMAT_LDAPV3);
     *new_dn_string = slapi_ch_smprintf("%s,%s", rdn, slapi_sdn_get_dn(ds_suffix));
     ldap_dnfree(ldn);
     ldap_memfree(rdn);
-- 
1.7.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to