summaryrefslogtreecommitdiffstats
path: root/ldap/admin/src/scripts
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-01-14 09:38:28 -0700
committerRich Megginson <rmeggins@redhat.com>2010-01-14 10:03:25 -0700
commit008edfbafa4746660d257647d59d6bdcf2a1684d (patch)
treef60c3871e6b43b6f3f6d8d64178fc312696934d1 /ldap/admin/src/scripts
parentc6b2d744bffdda1b490a75605446f599461f62d0 (diff)
downloadds-008edfbafa4746660d257647d59d6bdcf2a1684d.tar.gz
ds-008edfbafa4746660d257647d59d6bdcf2a1684d.tar.xz
ds-008edfbafa4746660d257647d59d6bdcf2a1684d.zip
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
Diffstat (limited to 'ldap/admin/src/scripts')
-rw-r--r--ldap/admin/src/scripts/DSCreate.pm.in3
1 files changed, 2 insertions, 1 deletions
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};