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 1741896 - FreeIPA location-specific template record expansion fails when there is no location defined
Summary: FreeIPA location-specific template record expansion fails when there is no lo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: bind-dyndb-ldap
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Alexander Bokovoy
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On: 1705072
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-16 11:29 UTC by Alexander Bokovoy
Modified: 2020-11-14 06:07 UTC (History)
7 users (show)

Fixed In Version: bind-dyndb-ldap-11.1-14.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1705072
Environment:
Last Closed: 2019-11-05 20:53:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3348 0 None None None 2019-11-05 20:53:37 UTC

Description Alexander Bokovoy 2019-08-16 11:29:17 UTC
+++ This bug was initially created as a clone of Bug #1705072 +++

FreeIPA by default configures location-specific templates for _ldap._tcp, _kerberos._tcp, _kerberos._udp, and _kpasswd._tcp CNAME records. However, a default deployment has no location defined. This means a template expansion inside bind-dyndb-ldap fails with an error message:

30-Apr-2019 16:54:06.882 dns_rdatatype_fromtext() failed for attribute 'idnsTemplateAttribute;cnamerecord': unknown class/type

The code then proceeds to create a staticly defined content of the CNAME record. However, a bug in that code actually creates two records: one with unexpanded CNAME value:

30-Apr-2019 16:54:06.882 setting 'substitutionvariable_ipalocation' is not defined so it cannot be substituted into template '_ldap._tcp.\{substitutionvariable_ipalocation\}._locations'

and another one with the actual A/AAAA entry for the server.

As result, DNS resolution of the CNAME record fails from external clients and new machines cannot be enrolled into IPA.

--- Additional comment from Alexander Bokovoy on 2019-05-01 14:58:12 EEST ---

PR https://pagure.io/bind-dyndb-ldap/pull-request/179 should fix the problem

--- Additional comment from Alexander Bokovoy on 2019-08-16 14:08:47 EEST ---

Merged upstream

--- Additional comment from Fedora Update System on 2019-08-16 14:28:07 EEST ---

FEDORA-2019-897749c1d2 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-897749c1d2

Comment 6 Kaleem 2019-09-03 12:17:15 UTC
Error message not seen with bind-dyndb-ldap-11.1-14.module+el8.1.0+4098+f286395e.x86_64 , moving to verified state.

With old rpm:
=============

[root@master ~]# ipa location-add test
-------------------------
Added IPA location "test"
-------------------------
  Location name: test
[root@master ~]# ipa server-mod master.testrelm.test --location test^C
[root@master ~]# ipa location-add test1
--------------------------
Added IPA location "test1"
--------------------------
  Location name: test1
[root@master ~]# ipa server-mod master.testrelm.test --location test
ipa: WARNING: Service named-pkcs11.service requires restart on IPA server master.testrelm.test to apply configuration changes.
------------------------------------------
Modified IPA server "master.testrelm.test"
------------------------------------------
  Server name: master.testrelm.test
  Min domain level: 1
  Max domain level: 1
  Location: test
  Enabled server roles: CA server, DNS server, IPA master
[root@master ~]# ystemctl restart named-pkcs11
-bash: ystemctl: command not found
[root@master ~]# systemctl restart named-pkcs11
[root@master ~]# ipa server-mod master.testrelm.test --location ''
ipa: WARNING: Service named-pkcs11.service requires restart on IPA server master.testrelm.test to apply configuration changes.
------------------------------------------
Modified IPA server "master.testrelm.test"
------------------------------------------
  Server name: master.testrelm.test
  Min domain level: 1
  Max domain level: 1
  Enabled server roles: CA server, DNS server, IPA master
[root@master ~]# systemctl restart named-pkcs11
[root@master ~]# tail -n 10 /var/named/data/named.run|grep 'idnsTemplateAttribute;cnamerecord'
03-Sep-2019 16:21:30.006 dns_rdatatype_fromtext() failed for attribute 'idnsTemplateAttribute;cnamerecord': unknown class/type
03-Sep-2019 16:21:30.006 dns_rdatatype_fromtext() failed for attribute 'idnsTemplateAttribute;cnamerecord': unknown class/type
03-Sep-2019 16:21:30.007 dns_rdatatype_fromtext() failed for attribute 'idnsTemplateAttribute;cnamerecord': unknown class/type
03-Sep-2019 16:21:30.007 dns_rdatatype_fromtext() failed for attribute 'idnsTemplateAttribute;cnamerecord': unknown class/type
03-Sep-2019 16:21:30.007 dns_rdatatype_fromtext() failed for attribute 'idnsTemplateAttribute;cnamerecord': unknown class/type
03-Sep-2019 16:21:30.007 dns_rdatatype_fromtext() failed for attribute 'idnsTemplateAttribute;cnamerecord': unknown class/type
03-Sep-2019 16:21:30.007 dns_rdatatype_fromtext() failed for attribute 'idnsTemplateAttribute;cnamerecord': unknown class/type

ERROR MESSAGE SEEN HERE

[root@master ~]# rpm -q bind-dyndb-ldap
bind-dyndb-ldap-11.1-13.module+el8.1.0+3389+a3c612fa.x86_64
[root@master ~]# 

With new rpm:
=============

[root@master ~]# yum update -y
...
Upgraded:
  keyutils-1.5.10-7.el8.x86_64                                          keyutils-libs-1.5.10-7.el8.x86_64                                            
  krb5-libs-1.17-8.el8.x86_64                                           krb5-pkinit-1.17-8.el8.x86_64                                                
  krb5-server-1.17-8.el8.x86_64                                         krb5-workstation-1.17-8.el8.x86_64                                           
  libipa_hbac-2.2.0-16.el8.x86_64                                       libkadm5-1.17-8.el8.x86_64                                                   
  libsss_autofs-2.2.0-16.el8.x86_64                                     libsss_certmap-2.2.0-16.el8.x86_64                                           
  libsss_idmap-2.2.0-16.el8.x86_64                                      libsss_sudo-2.2.0-16.el8.x86_64                                              
  libverto-0.3.0-6.el8.x86_64                                           libverto-libevent-0.3.0-6.el8.x86_64                                         
  nfs-utils-1:2.3.3-25.el8.x86_64                                       opencryptoki-3.11.1-2.el8.x86_64                                             
  opencryptoki-icsftok-3.11.1-2.el8.x86_64                              opencryptoki-libs-3.11.1-2.el8.x86_64                                        
  openldap-2.4.46-10.el8.x86_64                                         openldap-clients-2.4.46-10.el8.x86_64                                        
  policycoreutils-2.9-3.el8.x86_64                                      policycoreutils-python-utils-2.9-3.el8.noarch                                
  python3-libipa_hbac-2.2.0-16.el8.x86_64                               python3-policycoreutils-2.9-3.el8.noarch                                     
  python3-sss-2.2.0-16.el8.x86_64                                       python3-sss-murmur-2.2.0-16.el8.x86_64                                       
  python3-sssdconfig-2.2.0-16.el8.noarch                                redhat-logos-httpd-81.1-1.el8.noarch                                         
  sssd-client-2.2.0-16.el8.x86_64                                       sssd-common-2.2.0-16.el8.x86_64                                              
  sssd-common-pac-2.2.0-16.el8.x86_64                                   sssd-dbus-2.2.0-16.el8.x86_64                                                
  sssd-ipa-2.2.0-16.el8.x86_64                                          sssd-kcm-2.2.0-16.el8.x86_64                                                 
  sssd-krb5-common-2.2.0-16.el8.x86_64                                  sssd-nfs-idmap-2.2.0-16.el8.x86_64                                           
  sssd-tools-2.2.0-16.el8.x86_64                                        words-3.0-29.el8.noarch                                                      
  389-ds-base-1.4.1.3-6.module+el8.1.0+4112+7a518916.x86_64             389-ds-base-legacy-tools-1.4.1.3-6.module+el8.1.0+4112+7a518916.x86_64       
  389-ds-base-libs-1.4.1.3-6.module+el8.1.0+4112+7a518916.x86_64        bind-dyndb-ldap-11.1-14.module+el8.1.0+4098+f286395e.x86_64                  
  custodia-0.6.0-3.module+el8.1.0+4098+f286395e.noarch                  ipa-client-4.8.0-10.module+el8.1.0+4098+f286395e.x86_64                      
  ipa-client-common-4.8.0-10.module+el8.1.0+4098+f286395e.noarch        ipa-common-4.8.0-10.module+el8.1.0+4098+f286395e.noarch                      
  ipa-server-4.8.0-10.module+el8.1.0+4098+f286395e.x86_64               ipa-server-common-4.8.0-10.module+el8.1.0+4098+f286395e.noarch               
  ipa-server-dns-4.8.0-10.module+el8.1.0+4098+f286395e.noarch           jss-4.6.0-4.module+el8.1.0+3964+500fc130.x86_64                              
  opendnssec-1.4.14-1.module+el8.1.0+4098+f286395e.x86_64               pki-base-10.7.3-1.module+el8.1.0+3964+500fc130.noarch                        
  pki-base-java-10.7.3-1.module+el8.1.0+3964+500fc130.noarch            pki-ca-10.7.3-1.module+el8.1.0+3964+500fc130.noarch                          
  pki-kra-10.7.3-1.module+el8.1.0+3964+500fc130.noarch                  pki-server-10.7.3-1.module+el8.1.0+3964+500fc130.noarch                      
  pki-symkey-10.7.3-1.module+el8.1.0+3964+500fc130.x86_64               pki-tools-10.7.3-1.module+el8.1.0+3964+500fc130.x86_64                       
  python3-custodia-0.6.0-3.module+el8.1.0+4098+f286395e.noarch          python3-ipaclient-4.8.0-10.module+el8.1.0+4098+f286395e.noarch               
  python3-ipalib-4.8.0-10.module+el8.1.0+4098+f286395e.noarch           python3-ipaserver-4.8.0-10.module+el8.1.0+4098+f286395e.noarch               
  python3-jwcrypto-0.5.0-1.module+el8.1.0+4098+f286395e.noarch          python3-kdcproxy-0.4-3.module+el8.1.0+4098+f286395e.noarch                   
  python3-lib389-1.4.1.3-6.module+el8.1.0+4112+7a518916.noarch          python3-pki-10.7.3-1.module+el8.1.0+3964+500fc130.noarch                     
  python3-pyusb-1.0.0-9.module+el8.1.0+4098+f286395e.noarch             python3-yubico-1.3.2-9.module+el8.1.0+4098+f286395e.noarch                   
  redhat-logos-ipa-81.1-1.el8.noarch                                    slapi-nis-0.56.3-2.module+el8.1.0+4098+f286395e.x86_64                       

Complete!
[root@master ~]# ipa server-mod master.testrelm.test --location test
ipa: WARNING: Service named-pkcs11.service requires restart on IPA server master.testrelm.test to apply configuration changes.
------------------------------------------
Modified IPA server "master.testrelm.test"
------------------------------------------
  Server name: master.testrelm.test
  Min domain level: 1
  Max domain level: 1
  Location: test
  Enabled server roles: CA server, DNS server, IPA master
[root@master ~]# systemctl restart named-pkcs11
[root@master ~]# ipa server-mod master.testrelm.test --location ''
ipa: WARNING: Service named-pkcs11.service requires restart on IPA server master.testrelm.test to apply configuration changes.
------------------------------------------
Modified IPA server "master.testrelm.test"
------------------------------------------
  Server name: master.testrelm.test
  Min domain level: 1
  Max domain level: 1
  Enabled server roles: CA server, DNS server, IPA master
[root@master ~]# systemctl restart named-pkcs11
[root@master ~]# tail -n 10 /var/named/data/named.run|grep "idnsTemplateAttribute;cnamerecord"

ERROR MESSAGE NOT SEEN HERE
[root@master ~]# rpm -q bind-dyndb-ldap
bind-dyndb-ldap-11.1-14.module+el8.1.0+4098+f286395e.x86_64
[root@master ~]#

Comment 8 errata-xmlrpc 2019-11-05 20:53:27 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-2019:3348


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