Bug 2073352

Summary: Use right sdap_domain in ad_domain_info_send [rhel-7.9.z]
Product: Red Hat Enterprise Linux 7 Reporter: Alexey Tikhonov <atikhono>
Component: sssdAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: Dan Lavu <dlavu>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.9CC: aboscatt, dlavu, grajaiya, jhrozek, kpfleming, ktoyama, lslebodn, mzidek, pbrezina, tscherf
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: sssd-1.16.5-10.el7_9.13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-28 09:54:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexey Tikhonov 2022-04-08 09:47:32 UTC
This bug was initially created as a copy of Bug #2065098

I am copying this bug because: to track fix for RHEL 7.9.z



Description of problem:
If a client is joined to a domain in an AD forest which

 - is not the forest root
 - has no domain object of the forest root in the LDAP tree
 - has other domains from the local forest in the LDAP tree

it might be possible that the lookup for other domains in the forest on an LDAP server from the forest root will fail because a wrong search path will be used.

Comment 3 Alexey Tikhonov 2022-04-08 09:55:09 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6064

* `master`
    * 51e92297157562511baf8902777f02a4aa2e70e6 - ad: use right sdap_domain in ad_domain_info_send
* `sssd-1-16`
    * 2b84dddf8c3d3b30bb1919205b4eb53e1ba31714 - ad: use right sdap_domain in ad_domain_info_send

Comment 10 Alexey Tikhonov 2022-05-26 10:15:09 UTC
Additional PR: https://github.com/SSSD/sssd/pull/6171

Comment 11 Alexey Tikhonov 2022-05-30 10:34:17 UTC
Additional patch:

Pushed PR: https://github.com/SSSD/sssd/pull/6171

* `master`
    * 71b14474bec82a0c57065ad45915ebfeb9e3d03e - ad: add fallback in ad_domain_info_send()
* `sssd-1-16`
    * 410a3faa8cf1e358e53728fae7440a81763ab743 - ad: add fallback in ad_domain_info_send()
* `sssd-2-7`
    * 80ffa314c669feaaffe487d8ea5004c149d948c8 - ad: add fallback in ad_domain_info_send()

Comment 18 errata-xmlrpc 2022-06-28 09:54:33 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 (sssd bug fix and enhancement update), 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-2022:5240