Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1203597

Summary: Augeas fails to parse /etc/krb5.conf with "{}" in the value
Product: Red Hat Enterprise Linux 6 Reporter: Hu Zhang <huzhan>
Component: augeasAssignee: Dominic Cleal <dcleal>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7CC: leiwang, wshi
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: augeas-1.0.0-10.el6 Doc Type: Bug Fix
Doc Text:
Cause: /etc/krb5.conf configuration files containing {} in values Consequence: Augeas was unable to parse these krb5.conf files Fix: Augeas' lens (parser) has been fixed to handle {} in krb5.conf setting values Result: Augeas can now parse these krb5.conf files
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 05:41:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1066419    
Bug Blocks:    

Description Hu Zhang 2015-03-19 08:50:45 UTC
Description of problem:
Augeas fails to parse /etc/krb5.conf when there is any "{" and "}" in the value.


Version-Release number of selected component (if applicable):
augeas-1.0.0-9.el6.x86_64


How reproducible:
always


Steps to Reproduce:
1. Add the following line in the [logging] section
kdc = FILE:/var/log/krb{5}kdc.log

2. Try to parse /etc/krb5.conf
# augtool print /augeas/files/etc/krb5.conf

Actual results:
/augeas/files/etc/krb5.conf
/augeas/files/etc/krb5.conf/path = "/files/etc/krb5.conf"
/augeas/files/etc/krb5.conf/mtime = "1426151374"
/augeas/files/etc/krb5.conf/lens = "@Krb5"
/augeas/files/etc/krb5.conf/lens/info = "/usr/share/augeas/lenses/dist/krb5.aug:152.10-154.66:"
/augeas/files/etc/krb5.conf/error = "parse_failed"
/augeas/files/etc/krb5.conf/error/pos = "123"
/augeas/files/etc/krb5.conf/error/line = "5"
/augeas/files/etc/krb5.conf/error/char = "0"
/augeas/files/etc/krb5.conf/error/lens = "/usr/share/augeas/lenses/dist/krb5.aug:152.10-154.66:"
/augeas/files/etc/krb5.conf/error/message = "Get did not match entire input"

Expected results:
Augeas can parse /etc/krb5.conf successfully even there is any "{" and "}" in the value.

Additional info:

Comment 1 Dominic Cleal 2015-03-19 09:26:17 UTC
Fixed in d9465ab and in RHEL 7.0 already via bug #1066419.

Comment 3 Hu Zhang 2015-05-05 05:55:28 UTC
Verify with augeas-1.0.0-10.el6

Steps to verify:
1. Add the following line in the [logging] section
kdc = FILE:/var/log/krb{5}kdc.log

2. Try to parse /etc/krb5.conf
# augtool print /files/etc/krb5.conf
/files/etc/krb5.conf
/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[1]
/files/etc/krb5.conf/logging/kdc[1]/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/logging/kdc[2]
/files/etc/krb5.conf/logging/kdc[2]/file = "/var/log/krb{5}kdc.log"
/files/etc/krb5.conf/libdefaults
/files/etc/krb5.conf/libdefaults/default_realm = "EXAMPLE.COM"
/files/etc/krb5.conf/libdefaults/dns_lookup_realm = "false"
/files/etc/krb5.conf/libdefaults/dns_lookup_kdc = "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/realms
/files/etc/krb5.conf/realms/realm = "EXAMPLE.COM"
/files/etc/krb5.conf/realms/realm/kdc = "kerberos.example.com"
/files/etc/krb5.conf/realms/realm/admin_server = "kerberos.example.com"
/files/etc/krb5.conf/domain_realm
/files/etc/krb5.conf/domain_realm/.example.com = "EXAMPLE.COM"
/files/etc/krb5.conf/domain_realm/example.com = "EXAMPLE.COM"

Parsed successfully. So fixed.

Comment 5 errata-xmlrpc 2015-07-22 05:41:18 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-2015-1256.html