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 1406111 - augeas lens cannot process "includedir /etc/krb5.conf.d/" line in /etc/krb5.conf
Summary: augeas lens cannot process "includedir /etc/krb5.conf.d/" line in /etc/krb5.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: augeas
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Pino Toscano
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 1408526 (view as bug list)
Depends On:
Blocks: 1420851
TreeView+ depends on / blocked
 
Reported: 2016-12-19 18:41 UTC by Michal Wasilewski
Modified: 2020-02-14 18:21 UTC (History)
5 users (show)

Fixed In Version: augeas-1.4.0-4.el7
Doc Type: Bug Fix
Doc Text:
Prior to this update, Augeas was not able to read include and includedir directives in the kerberos configuration (/etc/krb5.conf), and it did not parse additional configuration files under /etc/krb5.conf.d. The krb5 lens of Augeas has been fixed to parse also the include and includedir directives in existing configuration, and to parse additional configuration files. As a result, Augeas now correctly reads all the kerberos configuration as expected.
Clone Of:
Environment:
Last Closed: 2018-04-10 09:55:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
yum.log which contains info about packages installed as a result of the group installation (4.28 KB, text/plain)
2016-12-19 18:41 UTC, Michal Wasilewski
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github hercules-team augeas pull 431 0 None None None 2017-08-31 12:40:20 UTC
Red Hat Product Errata RHBA-2018:0684 0 None None None 2018-04-10 09:56:37 UTC

Description Michal Wasilewski 2016-12-19 18:41:56 UTC
Created attachment 1233478 [details]
yum.log which contains info about packages installed as a result of the group installation

Description of problem:
during installation of 'Directory Client' yum group, a line is added to krb5.conf file which stops augeas from working normally with /etc/krb5.conf

Version-Release number of selected component (if applicable):
augeas-1.4.0-2.el7

How reproducible:

Steps to Reproduce:
1.augtool
2. print /files/etc/krb5.conf  <- this time will work
3. yum groupinstall 'Directory Client'   <- adds line to krb5.conf
4.augtool
5.print /files/etc/krb5.conf  <- won't work

Actual results:
augeas can no longer work with the file

Expected results:
augeas should be able to process the includedir line

Additional info:
removing includedir from krb5.conf fixes the problem, augeas can process the file

attached is a log file from the yum groupinstall

Comment 2 Xianghua Chen 2016-12-21 05:12:16 UTC
(In reply to Michal Wasilewski from comment #0)
> Created attachment 1233478 [details]
> yum.log which contains info about packages installed as a result of the
> group installation
> 
> Description of problem:
> during installation of 'Directory Client' yum group, a line is added to
> krb5.conf file which stops augeas from working normally with /etc/krb5.conf
> 
> Version-Release number of selected component (if applicable):
> augeas-1.4.0-2.el7
> 
> How reproducible:
> 
> Steps to Reproduce:
> 1.augtool
> 2. print /files/etc/krb5.conf  <- this time will work
> 3. yum groupinstall 'Directory Client'   <- adds line to krb5.conf

Do you mean that after this installation, there will a line added to krb5.conf?
includedir /etc/krb5.conf.d/

Or which  repo did you use? I can't execute it sucessfully.

> 4.augtool
> 5.print /files/etc/krb5.conf  <- won't work
> 
> Actual results:
> augeas can no longer work with the file
> 
> Expected results:
> augeas should be able to process the includedir line
> 
> Additional info:
> removing includedir from krb5.conf fixes the problem, augeas can process the
> file
> 
> attached is a log file from the yum groupinstall

Comment 3 Xianghua Chen 2016-12-26 02:35:30 UTC
Can reproduce it with:
augeas-1.4.0-2.el7.x86_64

Steps:
1. Add this line to /etc/krb5.conf:
includedir /etc/krb5.conf.d/

2. augtool
augtool> print /files/etc/krb5.conf
augtool> print /augeas/files/etc/krb5.conf
/augeas/files/etc/krb5.conf
/augeas/files/etc/krb5.conf/path = "/files/etc/krb5.conf"
/augeas/files/etc/krb5.conf/mtime = "1482303488"
/augeas/files/etc/krb5.conf/lens = "@Krb5"
/augeas/files/etc/krb5.conf/lens/info = "/usr/share/augeas/lenses/dist/krb5.aug:154.10-156.66:"
/augeas/files/etc/krb5.conf/error = "parse_failed"
/augeas/files/etc/krb5.conf/error/pos = "188"
/augeas/files/etc/krb5.conf/error/line = "6"
/augeas/files/etc/krb5.conf/error/char = "0"
/augeas/files/etc/krb5.conf/error/lens = "/usr/share/augeas/lenses/dist/krb5.aug:154.10-156.66:"
/augeas/files/etc/krb5.conf/error/message = "Get did not match entire input"

Comment 4 Xianghua Chen 2016-12-26 02:48:44 UTC
*** Bug 1408526 has been marked as a duplicate of this bug. ***

Comment 5 Michal Wasilewski 2016-12-28 17:29:33 UTC
yes, installing "Directory Client" group resulted in that line being added to krb5.conf

I did some more debugging and narrowed it down to the following update:
Updating: krb5-libs-1.14.1-27.el7_3.x86_64
Cleanup: krb5-libs-1.13.2-12.el7_2.x86_64

Comment 6 Jason Smith 2017-01-09 20:47:53 UTC
I submitted a pull request to the upstream project on github that was merged last month:

https://github.com/hercules-team/augeas/pull/431

So this should be fixed in the next version. Until that is released, maybe RedHat can update the augeas rpm in RHEL7 to include this patch.

Comment 8 YongkuiGuo 2017-09-29 06:19:25 UTC
Verified with packages:
augeas-1.4.0-4.el7.x86_64
krb5-libs-1.15.1-8.el7.x86_64

Steps:

1. #augtool
augtool> print /files/etc/krb5.conf
----------------------------------------------------
/files/etc/krb5.conf
/files/etc/krb5.conf/#comment = "Configuration snippets may be placed in this directory as well"
/files/etc/krb5.conf/includedir = "/etc/krb5.conf.d/"
/files/etc/krb5.conf/logging
/files/etc/krb5.conf/logging/default
/files/etc/krb5.conf/logging/default/file = "/var/log/krb5libs.log"
/files/etc/krb5.conf/logging/kdc
/files/etc/krb5.conf/logging/kdc/file = "/var/log/krb5kdc.log"
/files/etc/krb5.conf/logging/admin_server
/files/etc/krb5.conf/logging/admin_server/file = "/var/log/kadmind.log"
/files/etc/krb5.conf/libdefaults
/files/etc/krb5.conf/libdefaults/dns_lookup_realm = "false"
/files/etc/krb5.conf/libdefaults/ticket_lifetime = "24h"
/files/etc/krb5.conf/libdefaults/renew_lifetime = "7d"
/files/etc/krb5.conf/libdefaults/forwardable = "true"
/files/etc/krb5.conf/libdefaults/rdns = "false"
/files/etc/krb5.conf/libdefaults/#comment = "default_realm = EXAMPLE.COM"
/files/etc/krb5.conf/libdefaults/default_ccache_name = "KEYRING:persistent:%{uid}"
/files/etc/krb5.conf/realms
/files/etc/krb5.conf/realms/#comment[1] = "EXAMPLE.COM = {"
/files/etc/krb5.conf/realms/#comment[2] = "kdc = kerberos.example.com"
/files/etc/krb5.conf/realms/#comment[3] = "admin_server = kerberos.example.com"
/files/etc/krb5.conf/realms/#comment[4] = "}"
/files/etc/krb5.conf/domain_realm
/files/etc/krb5.conf/domain_realm/#comment[1] = ".example.com = EXAMPLE.COM"
/files/etc/krb5.conf/domain_realm/#comment[2] = "example.com = EXAMPLE.COM"
----------------------------------------------------
Augeas can parse /etc/krb5.conf which contains "includedir /etc/krb5.conf.d/" line. So verified it.

Comment 11 errata-xmlrpc 2018-04-10 09:55:26 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://access.redhat.com/errata/RHBA-2018:0684


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