Bug 1370679 - admin server - register-ds-admin fails to find local config DS
Summary: admin server - register-ds-admin fails to find local config DS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: Admin
Version: 10.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: DS10.1
: ---
Assignee: Noriko Hosoi
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-27 00:29 UTC by Noriko Hosoi
Modified: 2020-09-13 21:46 UTC (History)
3 users (show)

Fixed In Version: 389-admin-1.1.44-1.el7dsrv
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-07 15:40:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 1966 0 None None None 2020-09-13 21:46:47 UTC
Red Hat Product Errata RHBA-2016:2665 0 normal SHIPPED_LIVE Red Hat Directory Server bug fix and enhancement update 2016-11-07 20:38:00 UTC

Description Noriko Hosoi 2016-08-27 00:29:27 UTC
getLocalConfigDS() expects the ldapStart attribute from adm.conf to be in the format:

{{{
ldapStart: /start-dirsrv slapd-localhost
}}}

But start-dirsrv can accept the server ID without the prefix of "slapi-"

{{{
ldapStart: /start-dirsrv localhost
}}}

getLocalConfigDS() needs to handle both cases, otherwise register-ds-admin.pl fails to find the local configDS, and the script keeps asking for the admin password and never progresses.

Comment 2 Amita Sharma 2016-09-09 08:31:49 UTC
[root@dhcp210-134 lib64]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.3 Beta (Maipo)

[root@dhcp210-134 lib64]# rpm -qa | grep 389
389-console-1.1.18-1.el7dsrv.noarch
389-admin-1.1.44-1.el7dsrv.x86_64
389-admin-console-1.1.12-1.el7dsrv.noarch
389-ds-console-1.2.13-1.el7dsrv.noarch
389-ds-base-1.3.5.10-10.el7.x86_64
389-adminutil-1.1.23-1.el7dsrv.x86_64
389-ds-base-libs-1.3.5.10-10.el7.x86_64

Executed register-ds-admin.pl

====================================
If you want to register the server dhcp210-134, input the Directory Manager password on the server.

If you don't, type return.
[Directory Manager password on dhcp210-134 or return]: 
Instance 'slapd-dhcp210-134' was successfully registered.

==============================================================================
Beginning Admin Server reconfiguration . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Restarting admin server . . .
The admin server was successfully started.
Admin server was successfully reconfigured and started.
====================================

Worked well. Hence marking the bug as VERIFIED.

Comment 4 errata-xmlrpc 2016-11-07 15:40:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2665.html


Note You need to log in before you can comment on or make changes to this bug.