#47860 register-ds-admin.pl problem when following steps to replicate o=netscaperoot
Closed: wontfix None Opened 7 years ago by svenarajala.

When following the steps to configure replication for the o=netscaperoot database the register-ds-admin.pl script gets stuck in a loop prompting for the credentials of the directory manager password.

I modified the examples from the links of the files to use to setup the replication for my environment. The netscaperoot database must be created before trying to initialize the second server otherwise the intialization failed.

What I did to fix this issue was to modify the register-ds-admin.pl file on line 403 so that either the suffix_already_exists or error_creating)suffix_backend would end the loop of prompting for the directory manager password.

One can reproduce this issue by trying to follow the steps from the link below.

I changed the code to the following for register-ds-admin.pl on line 403 of the files if statement to work through the issue:

Get the ConfigDS's rootDN password

$setup->msg('register_new_confds', $new_confdsid);
$setup->{inf}->{slapd}->{RootDNPwd} =
reg_get_passwd($setup, 'input_rootdn_passwd', $new_confdsid);

if ( ($#admConfKeys >= 0 && ($orig_confdsid ne $new_confdsid)) ||
$#admConfKeys < 0 )
@errs = ();
# First, let's register the Configuration Directory itself
while (!createConfigDS($setup->{inf}, \@errs))
foreach my $err (@errs)
if ( $err eq "suffix_already_exists" || "error_creating_suffix_backend" )
print("Error the suffix already exists \n");
goto out;
$setup->{inf}->{slapd}->{RootDNPwd} =
reg_get_passwd($setup, 'input_rootdn_passwd', $new_confdsid);
@errs = ();

The steps followed were from the RHDS 9.1 documentation at this link: https://access.redhat.com/documentation/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Managing_Replication-Replicating-ADS-for-Failover.html

Thanks! Would it be possible for you to submit and attach a git format-patch file as described in http://port389.org/wiki/GIT_Rules ?

To ssh://git.fedorahosted.org/git/389/admin.git
d675f81..5923c77 master -> master

commit 5923c77db0adeb62123e7208c8bd4695f8092e32
Author: Mark Reynolds mreynolds@redhat.com
Date: Wed Sep 10 17:21:53 2014 -0400

Metadata Update from @mreynolds:
- Issue assigned to mreynolds
- Issue set to the milestone: 389-admin,console 1.1.36

4 years ago

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/1191

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

a year ago

Login to comment on this ticket.