#8554 ipa-kdb: support subordinate/superior UPN suffixes
Closed: fixed by rcritten. Opened by rcritten.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 8): Bug 1891056

Description of problem:
[MS-ADTS] 6.1.6.9.3.2 requires msDS-TrustForestTrustInfo attribute of
trusted domain information in Active Directory to conform certain rules.
One side-effect of those rules is that list of UPN suffixes reported
through the netr_DsRGetForestTrustInformation function is dynamically
filtered to deduplicate subordinate suffixes.
It means that if list of UPN suffixes contains the following top level
names (TLNs):
fabrikam.com
sub.fabrikam.com
then netr_DsRGetForestTrustInformation would only return 'fabrikam.com'
as the TLN, fully filtering 'sub.fabrikam.com'.
IPA KDB driver used exact comparison of the UPN suffixes so any
subordinate had to be specified exactly.
Modify logic so that if exact check does not succeed, we validate a
realm to test being a subordinate of the known UPN suffixes. The
subordinate check is done by making sure UPN suffix is at the end of the
test realm and is immediately preceded with a dot.
Because the function to check suffixes potentially called for every
Kerberos principal, precalculate and cache length for each UPN suffix at
the time we retrieve the list of them.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
6.1.6.9.3.2 Building Well-Formed msDS-TrustForestTrustInfo Messages
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/2994b19c-0
4ff-430d-b788-c82d334b31bc

Metadata Update from @rcritten:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1891056

master:

  • 8b6d1ab854387840f7526d6d59ddc7102231957f ipa-kdb: support subordinate/superior UPN suffixes

ipa-4-8:

  • 1f0702bf9231a4898a2d58325fc51c71fea25047 ipa-kdb: support subordinate/superior UPN suffixes

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

master:

  • 442038c41aef9ce07d0491a08bec406ede5f6686 ipatests: support subordinate upn suffixes
  • 0da6a57b406f538edf187c44760885c237261183 ad trust: accept subordinate domains of the forest trust root

ipa-4-8:

  • d5cca835d5439331c05475d0ad2f993ac6f8b615 ipatests: support subordinate upn suffixes
  • 6b224e57672e3f73f93bb9eddd9031e945529a1e ad trust: accept subordinate domains of the forest trust root

ipa-4-9:

  • 7e605e958ef6d41584afc238433669c15458ac67 ipatests: support subordinate upn suffixes
  • 381cc5e8eae1b7437fc15cb699983887d398f498 ad trust: accept subordinate domains of the forest trust root

master:

  • 4a1cb7e71990ee302ec2d2f320f851318a37c20c ipatests: rewrite test for requests routing to subordinate suffixes

ipa-4-9:

  • 0d9f988f5eb5f07965582b84f1b3ac812125b63f ipatests: rewrite test for requests routing to subordinate suffixes

ipa-4-8:

  • 1582da7532394572c794020c7f19854ff66b3ae8 ipatests: rewrite test for requests routing to subordinate suffixes
Metadata