Bug 2056035

Summary: 'getent hosts' not return hosts if they have more than one CN in LDAP
Product: Red Hat Enterprise Linux 8 Reporter: Daniel Filho <dcamilof>
Component: sssdAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: Anuj Borah <aborah>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.5CC: aborah, atikhono, grajaiya, jhrozek, lslebodn, mzidek, pbrezina, sbose, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.7.2-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 10:51:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 8 Alexey Tikhonov 2022-04-26 10:42:19 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6123

Comment 9 Alexey Tikhonov 2022-05-12 12:25:01 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6123

* `master`
    * 952b9bd71762ce9abeae3f506a5f65601e1769f9 - sdap: add tests for sdap_get_primary_name
    * dd1f4902b8ba4e5a081a77c0faece9bfcdccb697 - sdap: removed unused dom parameter from sdap_get_primary_name()
    * bb4e93015c47ae76f6e4d240994f7af7c2525b2d - sdap: make sdap_get_primary_name() aware of multi-valued RDNs
    * e587572b4a3993a330cfe0dcbe57ed2790073713 - sdap: move sysdb_attrs_primary_name() into sdap_get_primary_name()
    * e88559fa88c1f5a4cea089bd3dc7e74d740324d1 - sdap: replace sysdb_attrs_primary_name() with sdap_get_primary_name()
    * 3af930e5bb9f46bf88ad579142fe01a422332224 - sdap: rename functions copied from sysdb
    * bd08543161d076c9c27f0827fc3746c052f20624 - sdap: move some functions from sysdb to sdap
* `sssd-2-7`
    * 26bbaf7f60490ab561fe70603eb79f44218f8283 - sdap: add tests for sdap_get_primary_name
    * 676b5dce198429964fc25e02fb83ae8d6434d1c2 - sdap: removed unused dom parameter from sdap_get_primary_name()
    * 19b452015ec6e2f88024aa9299ac2f6223956d13 - sdap: make sdap_get_primary_name() aware of multi-valued RDNs
    * c1531822467e4cb6af183e31ef88799af952063f - sdap: move sysdb_attrs_primary_name() into sdap_get_primary_name()
    * 10f86ad3c664e34c66974e6af152a6b21fcc1d0d - sdap: replace sysdb_attrs_primary_name() with sdap_get_primary_name()
    * 75a70ac9c4596567c9f7bdb2451cb8ebe3393e82 - sdap: rename functions copied from sysdb
    * 8547e69955d083f097e72198af1cb064554da770 - sdap: move some functions from sysdb to sdap

Comment 17 errata-xmlrpc 2022-11-08 10:51:22 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:7739