Bug 1665051 - ipa-adtrust-install does not list service records for manual addition to DNS zone
Summary: ipa-adtrust-install does not list service records for manual addition to DNS ...
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: IPA Maintainers
QA Contact: ipa-qe
Lucie Maňásková
URL:
Whiteboard:
Depends On: 1683261
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-10 12:02 UTC by Sergey Orlov
Modified: 2019-08-13 12:38 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
.No information about required DNS records displayed when enabling support for AD trust in IdM When enabling support for Active Directory (AD) trust in Red Hat Enterprise Linux Identity Management (IdM) installation with external DNS management, no information about required DNS records is displayed. Forest trust to AD is not successful until the required DNS records are added. To work around this problem, run the 'ipa dns-update-system-records --dry-run' command to obtain a list of all DNS records required by IdM. When external DNS for IdM domain defines the required DNS records, establishing forest trust to AD is possible.
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)
Output of ipa-server-install (7.67 KB, text/plain)
2019-01-30 11:01 UTC, Sergey Orlov
no flags Details
Output of first run of ipa-adtrust-install (2.89 KB, text/plain)
2019-01-30 11:01 UTC, Sergey Orlov
no flags Details
Output of second run of ipa-adtrust-install (3.83 KB, text/plain)
2019-01-30 11:02 UTC, Sergey Orlov
no flags Details
Log file of ipa-server-install and both runs of ipa-adtrust-install (3.73 MB, text/plain)
2019-01-30 11:03 UTC, Sergey Orlov
no flags Details

Description Sergey Orlov 2019-01-10 12:02:11 UTC
Description of problem:
When executing ipa-adtrust-install on IPA server without configured DNS, there should be list of service records in command output which user should manually add to DNS zone. Actually this list is empty. 


Version-Release number of selected component (if applicable):
ipa-server-trust-ad-4.7.1-7.module+el8+2555+b334d87b.x86_64

How reproducible:
Always

Steps to Reproduce:
1. dnf module enable -y idm:DL1/dns
2. dnf install -y ipa-server ipa-server-trust-ad 
3. ipa-server-install -p Secret123 -a Secret123 -U -n master.test.ipa -r TEST.IPA
4. ipa-adtrust-install -a Secret123 -U

Actual results:
...
  [17/23]: adding special DNS service records
DNS management was not enabled at install time.
Add the following service records to your DNS server for DNS zone master.test.ipa: 
  [18/23]: restarting Directory Server to take MS PAC and LDAP plugins changes into account
...

Expected results:
...
  [17/23]: adding special DNS service records
DNS management was not enabled at install time.
Add the following service records to your DNS server for DNS zone master.test.ipa: 
_ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.master.test.ipa. 86400 IN SRV 0 100 389 host-8-253-10.host.centralci.eng.rdu2.redhat.com.
_ldap._tcp.dc._msdcs.master.test.ipa. 86400 IN SRV 0 100 389 host-8-253-10.host.centralci.eng.rdu2.redhat.com.
_kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.master.test.ipa. 86400 IN SRV 0 100 88 host-8-253-10.host.centralci.eng.rdu2.redhat.com.
_kerberos._udp.Default-First-Site-Name._sites.dc._msdcs.master.test.ipa. 86400 IN SRV 0 100 88 host-8-253-10.host.centralci.eng.rdu2.redhat.com.
_kerberos._tcp.dc._msdcs.master.test.ipa. 86400 IN SRV 0 100 88 host-8-253-10.host.centralci.eng.rdu2.redhat.com.
_kerberos._udp.dc._msdcs.master.test.ipa. 86400 IN SRV 0 100 88 host-8-253-10.host.centralci.eng.rdu2.redhat.com.
  [18/23]: restarting Directory Server to take MS PAC and LDAP plugins changes into account
...

Additional info:
If I run ipa-adtrust-install second time I see the expected output

Comment 1 Sergey Orlov 2019-01-10 12:03:55 UTC
The same behavior is observed also in Fedora28 and RHEL 7

Comment 2 Alexander Bokovoy 2019-01-29 14:30:49 UTC
I think it is a regression but we can fix it in a next minor release because we have a workaround:

# ipa dns-update-system-records --dry-run --out records.txt

will return you all records that need to exist for IPA to function in a format that nsupdate tool understands. If you remove '--out records.txt', then just list of the records will be provided, as expected.

Comment 3 Sergey Orlov 2019-01-30 11:01:06 UTC
Created attachment 1524991 [details]
Output of ipa-server-install

Comment 4 Sergey Orlov 2019-01-30 11:01:57 UTC
Created attachment 1524994 [details]
Output of first run of ipa-adtrust-install

Comment 5 Sergey Orlov 2019-01-30 11:02:21 UTC
Created attachment 1524995 [details]
Output of second run of ipa-adtrust-install

Comment 6 Sergey Orlov 2019-01-30 11:03:03 UTC
Created attachment 1524996 [details]
Log file of ipa-server-install and both runs of ipa-adtrust-install


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