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 767725 - GSS-TSIG DNS updates should update reverse entries as well
Summary: GSS-TSIG DNS updates should update reverse entries as well
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On: 767494
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-14 18:36 UTC by Dmitri Pal
Modified: 2013-06-20 17:22 UTC (History)
3 users (show)

Fixed In Version: ipa-2.2.0-3.el6
Doc Type: Bug Fix
Doc Text:
Cause: When an IPA server is configured with a DNS support, DNS zone dynamic update policy allows IPA clients to update a relevant DNS forward record if the client IP address changes. However, for security reasons, clients cannot be allowed to update also their reverse records, because then they would be able to change any record in the reverse zone. Consequence: Reverse record is not updated automatically when client IP address changes. Change: IPA dns zone can be configured to allow automatic updates of client reverse records when the forward record is updated with the new IP address. Result: Both forward and reverse records for a client machine can be updated when client IP address changes.
Clone Of:
Environment:
Last Closed: 2012-06-20 13:28:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0819 0 normal SHIPPED_LIVE ipa bug fix and enhancement update 2012-06-19 20:34:17 UTC

Description Dmitri Pal 2011-12-14 18:36:57 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/2176

Moved to FreeIPA from https://fedorahosted.org/sssd/ticket/1089

Customers have requested on the mailing lists that updating DNS entries with SSSD should also update the reverse entry in DNS. For security reasons, we cannot have SSSD do this with GSS-TSIG (because it would require giving each client the capability to update any reverse entry in the domain).

Our recommended solution would be to add a plugin to the BIND LDAP driver to allow it to set the reverse entry automatically whenever the forward entry is updated.

Comment 1 Martin Kosek 2012-02-24 09:10:01 UTC
Fixed upstream:
master: 1c898e388b4777e0dfd0dd7577bbb4971e308605
ipa-2-2: 40063c08e567287fd86e10405ccf5c9418bceabb

Comment 3 Martin Kosek 2012-04-19 19:26:38 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: When an IPA server is configured with a DNS support, DNS zone dynamic update policy allows IPA clients to update a relevant DNS forward record if the client IP address changes. However, for security reasons, clients cannot be allowed to update also their reverse records, because then they would be able to change any record in the reverse zone.
Consequence: Reverse record is not updated automatically when client IP address changes.
Change: IPA dns zone can be configured to allow automatic updates of client reverse records when the forward record is updated with the new IP address.
Result: Both forward and reverse records for a client machine can be updated when client IP address changes.

Comment 4 Kaleem 2012-05-04 10:26:14 UTC
Verified.

ipa version:
===========
[root@ipa63server ~]# rpm -q ipa-server bind-dyndb-ldap
ipa-server-2.2.0-12.el6.x86_64
bind-dyndb-ldap-1.1.0-0.8.b1.el6.x86_64
[root@ipa63server ~]#

Following steps used for verification:

On Server side:
===============
(1)Add a PTR record in reverse zone for existing A record in forward zone.

  ipa dnsrecord-add 201.65.10.in-addr.arpa. 163 --ptr-rec ipa63client1.testrelm.com.

(2)Add synchronization flag for forward and reverse zone records in Forward zone.
   
  [root@ipa63server ~]# ipa dnszone-mod testrelm.com --allow-sync-ptr=1
  Zone name: testrelm.com
  Authoritative nameserver: ipa63server.testrelm.com.
  Administrator e-mail address: hostmaster.testrelm.com.
  SOA serial: 2012050252
  SOA refresh: 3600
  SOA retry: 900
  SOA expire: 1209600
  SOA minimum: 3600
  Active zone: TRUE
  Allow query: any;
  Allow transfer: none;
  Allow PTR sync: TRUE
  [root@ipa63server ~]#

(3)Verify that both forward and reverse records are present.

   [root@ipa63server ~]# ipa dnsrecord-find testrelm.com client;ipa dnsrecord-find 201.65.10.in-addr.arpa. client
  Record name: ipa63client1
  A record: 10.65.201.161
  SSHFP record: 2 1 5A8C58F842A807DBCC2A92396AE50492A92EADCC, 1 1 4A6DEF9594E86160F62D09923B3C8517784BF9C4
----------------------------
Number of entries returned 1
----------------------------
  Record name: 163
  PTR record: ipa63client1.testrelm.com.
----------------------------
Number of entries returned 1
----------------------------
[root@ipa63server ~]#

On Client side:
===============
(4)Get kerberos tkt for client machine's principal.

   /usr/bin/kinit -k -t /etc/krb5.keytab host/`hostname`

(5)Run nsupdate to send dns update request to modify A record

   [root@ipa63client1 ~]# cat nsupdate.txt 
   zone testrelm.com
   update delete ipa63client1.testrelm.com IN A
   send
   update add ipa63client1.testrelm.com 1200 IN A 10.65.201.161
   send
   [root@ipa63client1 ~]#

   nsupdate -g nsupdate.txt

On Server side:
===============
(6)Verify that both forward and reverse records have been changed.

[root@ipa63server ~]# ipa dnsrecord-find testrelm.com client;ipa dnsrecord-find 201.65.10.in-addr.arpa. client
  Record name: ipa63client1
  A record: 10.65.201.161
  SSHFP record: 2 1 5A8C58F842A807DBCC2A92396AE50492A92EADCC, 1 1 4A6DEF9594E86160F62D09923B3C8517784BF9C4
----------------------------
Number of entries returned 1
----------------------------
  Record name: 161
  PTR record: ipa63client1.testrelm.com.
----------------------------
Number of entries returned 1
----------------------------
[root@ipa63server ~]#

Comment 7 errata-xmlrpc 2012-06-20 13:28:17 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.

http://rhn.redhat.com/errata/RHBA-2012-0819.html


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