Browse Source

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
Rich Megginson 16 years ago
parent
commit
008edfbafa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ldap/admin/src/scripts/DSCreate.pm.in

+ 2 - 1
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};