Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1845975

Summary: sssd doesn't follow the link order of AD Group Policy Management
Product: Red Hat Enterprise Linux 8 Reporter: Alexey Tikhonov <atikhono>
Component: sssdAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: sssd-qe <sssd-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: dlavu, grajaiya, jhrozek, lslebodn, mzidek, pbrezina, sgoveas, thalman, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.3.0-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:05:17 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 1 Alexey Tikhonov 2020-06-10 14:15:11 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/5159

* `master`
    * dce025b882db7247571b135e928afb47f069a60f - GPO: fix link order in a SOM
* `sssd-1-16`
    * 7cf6b86408e53c5c2c5f6da89aef3dec68223c59 - GPO: fix link order in a SOM

Comment 5 Dan Lavu 2020-08-08 00:03:03 UTC
Verified against sssd-2.3.0-6.el8.x86_64


2020-08-07T20:50:26 [ci-vm-10-0-107-118.h] ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2020-08-07T20:50:26 [ci-vm-10-0-107-118.h] ::   parent domain sssd doesn't follow the link order of AD Group Policy Management
2020-08-07T20:50:26 [ci-vm-10-0-107-118.h] ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

2020-08-07T20:50:39 [ci-vm-10-0-107-118.h] [32mAdministrator@ad123 [33m~[0m
2020-08-07T20:50:39 [ci-vm-10-0-107-118.h] $ powershell 'Import-Module GroupPolicy; Import-Module ActiveDirectory; New-GPLin
2020-08-07T20:50:39 [ci-vm-10-0-107-118.h] nk -Name "user_policy" -Target "DC=adgpo12r83,DC=com" -LinkEnabled yes'
2020-08-07T20:50:39 [ci-vm-10-0-107-118.h] GpoId       : cb2b4976-6022-4d58-8d28-80e25595a0b9
2020-08-07T20:50:39 [ci-vm-10-0-107-118.h] DisplayName : user_policy
2020-08-07T20:50:39 [ci-vm-10-0-107-118.h] Enabled     : True
2020-08-07T20:50:39 [ci-vm-10-0-107-118.h] Enforced    : False
2020-08-07T20:50:39 [ci-vm-10-0-107-118.h] Target      : DC=adgpo12r83,DC=com
2020-08-07T20:50:39 [ci-vm-10-0-107-118.h] Order       : 2
0-08-07T20:50:52 [ci-vm-10-0-107-118.h] $ powershell 'Import-Module GroupPolicy; Import-Module ActiveDirectory; New-GPLin
2020-08-07T20:50:52 [ci-vm-10-0-107-118.h] nk -Name "user_policy1" -Target "DC=adgpo12r83,DC=com" -LinkEnabled yes'
2020-08-07T20:50:52 [ci-vm-10-0-107-118.h] GpoId       : a7f6ae0a-c1c7-410a-9f41-9596cfaec55f
2020-08-07T20:50:52 [ci-vm-10-0-107-118.h] DisplayName : user_policy1
2020-08-07T20:50:52 [ci-vm-10-0-107-118.h] Enabled     : True
2020-08-07T20:50:52 [ci-vm-10-0-107-118.h] Enforced    : False
2020-08-07T20:50:52 [ci-vm-10-0-107-118.h] Target      : DC=adgpo12r83,DC=com
2020-08-07T20:50:52 [ci-vm-10-0-107-118.h] Order       : 3


2020-08-07T20:51:28 [ci-vm-10-0-107-118.h] logout
2020-08-07T20:51:28 [ci-vm-10-0-107-118.h] Connection to localhost closed.
2020-08-07T20:51:28 [ci-vm-10-0-107-118.h] :: [ 16:51:28 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'allowed_user' Secret123' (Expected 0, got 0)
2020-08-07T20:51:28 [ci-vm-10-0-107-118.h] :: [ 16:51:28 ] :: [  BEGIN   ] :: Running 'ssh_user_password_login 'allowed_user1' Secret123'
2020-08-07T20:51:28 [ci-vm-10-0-107-118.h] spawn ssh -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o NumberOfPasswordPrompts=1 -l allowed_user1 localhost
2020-08-07T20:51:28 [ci-vm-10-0-107-118.h] allowed_user1@localhost's password: 
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] Connection closed by ::1 port 22
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] :: [ 16:51:28 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'allowed_user1' Secret123' (Expected 255, got 255)
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] :: [ 16:51:28 ] :: [  BEGIN   ] :: Running 'ssh_user_password_login 'regular_user' Secret123'
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] spawn ssh -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o NumberOfPasswordPrompts=1 -l regular_user localhost
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] regular_user@localhost's password: 
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] Connection closed by ::1 port 22
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] :: [ 16:51:29 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'regular_user' Secret123' (Expected 255, got 255)
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] :: [ 16:51:29 ] :: [  BEGIN   ] :: Running 'ssh_user_password_login 'denied_user' Secret123'
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] spawn ssh -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o NumberOfPasswordPrompts=1 -l denied_user localhost
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] denied_user@localhost's password: 
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] Connection closed by ::1 port 22
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] :: [ 16:51:29 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'denied_user' Secret123' (Expected 255, got 255)
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] :: [ 16:51:29 ] :: [  BEGIN   ] :: Running 'ssh_user_password_login 'denied_user1' Secret123'
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] spawn ssh -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o NumberOfPasswordPrompts=1 -l denied_user1 localhost
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] denied_user1@localhost's password: 
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] Connection closed by ::1 port 22
2020-08-07T20:51:29 [ci-vm-10-0-107-118.h] :: [ 16:51:29 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'denied_user1' Secret123' (Expected 255, got 255)
< ---- snip ----->

2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] $ powershell 'Import-Module GroupPolicy; Import-Module ActiveDirectory; New-GPLin
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] nk -Name "user_policy1" -Target "DC=adgpo12r83,DC=com" -LinkEnabled yes'
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] GpoId       : a7f6ae0a-c1c7-410a-9f41-9596cfaec55f
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] DisplayName : user_policy1
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] Enabled     : True
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] Enforced    : False
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] Target      : DC=adgpo12r83,DC=com
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] Order       : 2
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] ]0;~
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] [32mAdministrator@ad123 [33m~[0m
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] $ 
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] exit
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] logout
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] [H[J
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] Connection to 10.0.105.168 closed.
2020-08-07T20:52:07 [ci-vm-10-0-107-118.h] :: [ 16:52:07 ] :: [   LOG    ] :: GPO :: Linking user_policy to DC=adgpo12r83,DC=com
<--- snip --->
2020-08-07T20:52:20 [ci-vm-10-0-107-118.h] [32mAdministrator@ad123 [33m~[0m
2020-08-07T20:52:20 [ci-vm-10-0-107-118.h] $ powershell 'Import-Module GroupPolicy; Import-Module ActiveDirectory; New-GPLin
2020-08-07T20:52:20 [ci-vm-10-0-107-118.h] nk -Name "user_policy" -Target "DC=adgpo12r83,DC=com" -LinkEnabled yes'
2020-08-07T20:52:20 [ci-vm-10-0-107-118.h] GpoId       : cb2b4976-6022-4d58-8d28-80e25595a0b9
2020-08-07T20:52:20 [ci-vm-10-0-107-118.h] DisplayName : user_policy
2020-08-07T20:52:20 [ci-vm-10-0-107-118.h] Enabled     : True
2020-08-07T20:52:20 [ci-vm-10-0-107-118.h] Enforced    : False
2020-08-07T20:52:20 [ci-vm-10-0-107-118.h] Target      : DC=adgpo12r83,DC=com
2020-08-07T20:52:20 [ci-vm-10-0-107-118.h] Order       : 3
<--- snip ---->

2020-08-07T20:53:16 [ci-vm-10-0-107-118.h] Connection to localhost closed.
2020-08-07T20:53:16 [ci-vm-10-0-107-118.h] :: [ 16:53:16 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'allowed_user1' Secret123' (Expected 0, got 0)
2020-08-07T20:53:16 [ci-vm-10-0-107-118.h] :: [ 16:53:16 ] :: [  BEGIN   ] :: Running 'ssh_user_password_login 'allowed_user' Secret123'
2020-08-07T20:53:16 [ci-vm-10-0-107-118.h] spawn ssh -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o NumberOfPasswordPrompts=1 -l allowed_user localhost
2020-08-07T20:53:16 [ci-vm-10-0-107-118.h] allowed_user@localhost's password: 
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] Connection closed by ::1 port 22
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] :: [ 16:53:16 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'allowed_user' Secret123' (Expected 255, got 255)
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] :: [ 16:53:16 ] :: [  BEGIN   ] :: Running 'ssh_user_password_login 'regular_user' Secret123'
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] spawn ssh -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o NumberOfPasswordPrompts=1 -l regular_user localhost
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] regular_user@localhost's password: 
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] Connection closed by ::1 port 22
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] :: [ 16:53:17 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'regular_user' Secret123' (Expected 255, got 255)
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] :: [ 16:53:17 ] :: [  BEGIN   ] :: Running 'ssh_user_password_login 'denied_user' Secret123'
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] spawn ssh -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o NumberOfPasswordPrompts=1 -l denied_user localhost
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] denied_user@localhost's password: 
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] Connection closed by ::1 port 22
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] :: [ 16:53:17 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'denied_user' Secret123' (Expected 255, got 255)
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] :: [ 16:53:17 ] :: [  BEGIN   ] :: Running 'ssh_user_password_login 'denied_user1' Secret123'
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] spawn ssh -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o NumberOfPasswordPrompts=1 -l denied_user1 localhost
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] denied_user1@localhost's password: 
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] Connection closed by ::1 port 22
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] :: [ 16:53:17 ] :: [   PASS   ] :: Command 'ssh_user_password_login 'denied_user1' Secret123' (Expected 255, got 255)
2020-08-07T20:53:17 [ci-vm-10-0-107-118.h] :: [ 16:53:17 ] :: [   LOG    ] :: GPO :: Unlinking user_policy from DC=adgpo12r83,DC=com

Comment 8 errata-xmlrpc 2020-11-04 02:05:17 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-2020:4569