From 008edfbafa4746660d257647d59d6bdcf2a1684d Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Thu, 14 Jan 2010 09:38:28 -0700 Subject: rhds81 hub with 71 master - err=32 on replica base search during replication https://bugzilla.redhat.com/show_bug.cgi?id=509201 Resolves: bug 509201 Bug Description: rhds81 hub with 71 master - err=32 on replica base search during replication Reviewed by: nhosoi (Thanks!) Branch: HEAD Fix Description: This patch doesn't fix the problem, but it makes it less likely to occur in the future. The problem is that we are not consistent about using normalized DNs everywhere. Without using a normalized DN, it is impossible to construct a DN containing another DN (e.g. cn="dc=example, dc=com", cn=mapping tree, cn=config) that another client can match on. This patch at least forces setup to use a normalized DN for the suffix. Platforms tested: RHEL5 x86_64 Flag Day: no Doc impact: Yes - we will need to document what to do when running into this problem, as in the workaround in the bug report --- ldap/admin/src/scripts/DSCreate.pm.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldap/admin/src/scripts/DSCreate.pm.in b/ldap/admin/src/scripts/DSCreate.pm.in index 71559082..fb2a4d75 100644 --- a/ldap/admin/src/scripts/DSCreate.pm.in +++ b/ldap/admin/src/scripts/DSCreate.pm.in @@ -762,9 +762,10 @@ sub setDefaults { # convert fqdn to dc= domain components $suffix =~ s/^[^\.]*\.//; # just the domain part $suffix = "dc=$suffix"; - $suffix =~ s/\./, dc=/g; + $suffix =~ s/\./,dc=/g; $inf->{slapd}->{Suffix} = $suffix; } + $inf->{slapd}->{Suffix} = normalizeDN($inf->{slapd}->{Suffix}); if (!$inf->{slapd}->{ServerIdentifier}) { my $servid = $inf->{General}->{FullMachineName}; -- cgit