Bug 2087744

Summary: Unable to lookup AD user if the AD group contains '@' symbol
Product: Red Hat Enterprise Linux 8 Reporter: Alexey Tikhonov <atikhono>
Component: sssdAssignee: Tomas Halman <thalman>
Status: CLOSED ERRATA QA Contact: shridhar <sgadekar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: grajaiya, jhrozek, lslebodn, mzidek, pbrezina, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
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:32 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:

Description Alexey Tikhonov 2022-05-18 12:11:50 UTC
This bug was initially created as a copy of Bug #2061795

I am copying this bug because: to track fix for RHEL8



Description of problem:

Unable to lookup AD user if the AD group contains '@' symbol

Workaround: Adding re_expression = (((?P<name>.+)@(?P<domain>[^@]+$))|(^(?P<name>[^@\\]+)$)) on the IPA server and client's /etc/sssd/sssd.conf

Version-Release number of selected component (if applicable):

sssd version: sssd-2.4.0-9.el8_4.2.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Alexey Tikhonov 2022-05-18 12:16:50 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6044

* `master`
    * dde276e251ca0210757407b0013578d2e789bf60 - TESTS: New tests for IPA/AD re_expression default
    * c159f52995d211e0ccc72b918f441bd1497549f6 - usertools: move default re_expression definition
    * 0c0705e301886a5af5f0f9ed947d23e00851a104 - usertools: better default for IPA/AD re_expression

Comment 5 Alexey Tikhonov 2022-06-10 13:21:12 UTC
Additional PR: https://github.com/SSSD/sssd/pull/6205

Comment 6 Alexey Tikhonov 2022-06-13 10:22:47 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6205

* `master`
    * 9656516b9af2b3ea4627eab42f11c7667564020f - names: only check sub-domains for regex match
* `sssd-2-7`
    * 536dc9e4f72503942e659ca0dbd022d3dfac148f - names: only check sub-domains for regex match

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