Unbreak the ipa winsync plugin.

Fix RDN construction.

Fixes: https://fedorahosted.org/freeipa/ticket/1015
This commit is contained in:
Simo Sorce 2011-02-25 13:11:34 -05:00
parent c335eb96e7
commit 1d01ea53f1

View File

@ -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);