Setting up replication leads to many errors like this: [01/Feb/2012:20:56:00 -0700] NSMMReplicationPlugin - repl_set_mtn_referrals: could not set referrals for replica dc=example,dc=com: 32
0001-Ticket-277-cannot-set-repl-referrals-or-state.patch 0001-Ticket-277-cannot-set-repl-referrals-or-state.patch
To ssh://git.fedorahosted.org/git/389/ds.git 2a0b622..bbb4139 master -> master commit changeset:bbb4139/389-ds-base Author: Rich Megginson rmeggins@redhat.com Date: Thu Feb 2 09:38:49 2012 -0700 Reviewed by: nkinder (Thanks!) Branch: master Fix Description: Need to create a normalized DN string using slapi_create_dn_string rather than a raw unnormalized DN string with slapi_ch_smprintf. The code was using the unnorm string to perform the internal search and modify operations, and the modify code was expecting a normalized DN string instead. The search code was normalizing the DN, but the comment in the function suggested that it was supposed to return a normalized DN string. Platforms tested: RHEL6 x86_64 Flag Day: no Doc impact: no
The bug was introduced by this patch. Sorry about it... :( commit f639711 Author: Noriko Hosoi nhosoi@redhat.com Date: Wed Oct 19 16:51:48 2011 -0700 Reduce the number of DN normalization
In your patch, you are calling "slapi_sdn_get_ndn(root)" and slapi_sdn_get_dn(root), both may normalize root if the ndn or dn value is not available yet, respectively. Then, slapi_create_dn_string normalizes it again. So, could you replace slapi_sdn_get_(n)dn with slapi_sdn_get_udn? It'd eliminate one dn normalization each... 2912 dn = slapi_create_dn_string("cn=\"%s\",%s", 2913 slapi_sdn_get_ndn(root), MAPPING_TREE_BASE_DN);
2939 dn = slapi_create_dn_string("cn=\"%s\",%s", 2940 slapi_sdn_get_dn(root), MAPPING_TREE_BASE_DN);
To ssh://git.fedorahosted.org/git/389/ds.git b4c3983..43ec9da master -> master commit changeset:43ec9da/389-ds-base Author: Rich Megginson rmeggins@redhat.com Date: Thu Feb 2 16:20:02 2012 -0700 Reviewed by: nhosoi (Thanks!) Branch: master Fix Description: Use slapi_sdn_get_udn(root) to get the raw DN string to pass to slapi_create_dn_string - will save a normalization if root is not normalized. Platforms tested: RHEL6 x86_64 Flag Day: no Doc impact: no
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=788140
Added initial screened field value.
Metadata Update from @nkinder: - Issue assigned to rmeggins - Issue set to the milestone: 1.2.10.rc1
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/277
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Fixed)
Login to comment on this ticket.