diff options
author | Rich Megginson <rmeggins@redhat.com> | 2010-01-14 09:38:28 -0700 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2010-01-14 10:03:25 -0700 |
commit | 008edfbafa4746660d257647d59d6bdcf2a1684d (patch) | |
tree | f60c3871e6b43b6f3f6d8d64178fc312696934d1 /ldap/admin | |
parent | c6b2d744bffdda1b490a75605446f599461f62d0 (diff) | |
download | ds-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')
-rw-r--r-- | ldap/admin/src/scripts/DSCreate.pm.in | 3 |
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}; |