Bug 1014380 - setup-ds.pl doesn't lookup the "root" group correctly
setup-ds.pl doesn't lookup the "root" group correctly
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base (Show other bugs)
7.0
Unspecified Unspecified
low Severity unspecified
: rc
: ---
Assigned To: Rich Megginson
Viktor Ashirov
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-01 16:52 EDT by Rich Megginson
Modified: 2015-03-05 04:31 EST (History)
3 users (show)

See Also:
Fixed In Version: 389-ds-base-1.3.3.1-1.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-05 04:31:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rich Megginson 2013-10-01 16:52:06 EDT
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/47473

Silent install will fail, if you set the "SuiteSpotUserID" to root, but do not set "SuiteSpotGroup".

Error: could not determine the current group ID:  at /usr/lib64/dirsrv/perl/DSUtil.pm line 186
	DSUtil::getGroup('root') called at /usr/lib64/dirsrv/perl/DSCreate.pm line 822
	DSCreate::setDefaults('Inf=HASH(0x21bff90)') called at /usr/lib64/dirsrv/perl/DSCreate.pm line 1175
	DSCreate::createDSInstance('Inf=HASH(0x21bff90)') called at /usr/sbin/setup-ds.pl line 83
Comment 2 Amita Sharma 2014-12-18 09:47:47 EST
[root@dhcp201-126 export]# cat sample.inf
[General]
SuiteSpotUserID = root
FullMachineName = dhcp201-126.englab.pnq.redhat.com


[slapd]
InstallLdifFile = suggest
ServerIdentifier = dhcp201-126
ServerPort = 1289
AddOrgEntries = Yes
RootDN = cn=Directory Manager
RootDNPwd = Secret123
Suffix = dc=example,dc=com
AddSampleEntries = No

[root@dhcp201-126 export]# setup-ds.pl --silent --file /export/sample.inf 
Warning: using root as the server user id.  You are strongly encouraged to use a non-root user.
Your new DS instance 'dhcp201-126' was successfully created.
Exiting . . .
Log file is '/tmp/setupZvg2lJ.log

Hence VERIFIED.
Comment 4 errata-xmlrpc 2015-03-05 04:31:09 EST
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/RHSA-2015-0416.html

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