RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1255433 - rpm -V openldap-servers complains after a clean install
Summary: rpm -V openldap-servers complains after a clean install
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openldap
Version: 7.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Matus Honek
QA Contact: Patrik Kis
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-20 14:47 UTC by Patrik Kis
Modified: 2016-11-03 23:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
: 1263220 (view as bug list)
Environment:
Last Closed: 2016-11-03 23:40:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2163 0 normal SHIPPED_LIVE openldap bug fix and enhancement update 2016-11-03 13:14:42 UTC

Description Patrik Kis 2015-08-20 14:47:06 UTC
Description of problem:
On a clean machine where openldap-servers is freshly installed, rpm -V complains.

# rpm -V openldap-servers
S.5....T.  c /etc/sysconfig/slapd

Interestingly, if there is upgrade the permissions are fixed.

I believe the issue is in spec file, as different mask is used in %install section and different in %files:

$ grep slapd.d openldap-2.4.40-5.el7.src/openldap.spec 
install -m 0700 -d %{buildroot}%{_sysconfdir}/openldap/slapd.d
%config(noreplace) %dir %attr(0750,ldap,ldap) %{_sysconfdir}/openldap/slapd.d

NOTE: This is not regression and is not an important issue at all, but it would be nice to fix.

I propose the fix to RHEL-7.2, but leave the decision to devel to fix it there or postpone to next release.

Version-Release number of selected component (if applicable):
openldap-2.4.40-5.el7

How reproducible:
always

Steps to Reproduce:
# rpm -ev openldap-servers
Preparing packages...
openldap-servers-2.4.40-5.el7.x86_64
# rm -rf /etc/openldap/slapd.d/ 
# rpm -ivh ~/ldap/new/openldap-servers-2.4.40-5.el7.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:openldap-servers-2.4.40-5.el7    ################################# [100%]
# rpm -V openldap-servers
.M.......  n /etc/openldap/slapd.d
# ls -l /etc/openldap/
total 12
drwxr-xr-x. 2 root root   85 Jul 24 21:57 certs
-rw-r--r--. 1 root root  121 Jul 24 21:57 check_password.conf
-rw-r--r--. 1 root root  363 Jul 24 21:57 ldap.conf
drwxr-xr-x. 2 root root 4096 Aug 20 16:43 schema
drwx------. 3 ldap ldap   43 Aug 20 16:43 slapd.d
#
# chmod 750 /etc/openldap/slapd.d/
# rpm -V openldap-servers
#

Comment 5 Nathan Kinder 2016-02-19 15:23:25 UTC
Acking for RHEL 7.3.  This should be an easy fix.

Comment 11 errata-xmlrpc 2016-11-03 23:40:44 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-2163.html


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