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.
DescriptionKaushik Banerjee
2020-01-16 09:31:18 UTC
Description of problem:
Failed user login does not return to prompt on login denial due to unreadable GPO
Version-Release number of selected component (if applicable):
sssd-ad-2.2.3-6.el8
How reproducible:
Always
Steps to Reproduce:
1. Setup unreadable GPO
2. Setup sssd with following config:
# cat /etc/sssd/sssd.conf
[sssd]
domains = td5e5666.com
config_file_version = 2
services = nss, pam
[domain/td5e5666.com]
ad_domain = td5e5666.com
krb5_realm = TD5E5666.COM
realmd_tags = manages-system joined-with-adcli
cache_credentials = True
id_provider = ad
krb5_store_password_if_offline = True
default_shell = /bin/bash
ldap_sasl_authid = CI-VM-10-0-155-$
ldap_id_mapping = True
use_fully_qualified_names = True
fallback_homedir = /home/%u@%d
access_provider = ad
ad_gpo_access_control = enforcing
ad_gpo_ignore_unreadable = false
3. Try to login using any one of the users
# ssh -l kaushik.allow localhost
kaushik.allow@localhost's password:
Broadcast message from systemd-journald.upshift.rdu2.redhat.com (Thu 2020-01-16 03:51:24 EST):
sssd[be[td5e5666.com]][20578]: Group Policy Container with DN [cn={922D526B-A7C5-4919-BE2D-9E87ED3394BC},cn=policies,cn=system,DC=td5e5666,DC=com] is unreadable or has unreadable or missing attributes. In order to fix this make sure that this AD object has following attributes readable: nTSecurityDescriptor, cn, gPCFileSysPath, gPCMachineExtensionNames, gPCFunctionalityVersion, flags. Alternatively if you do not have access to the server or can not change permissions on this object, you can use option ad_gpo_ignore_unreadable = True which will skip this GPO. See ad_gpo_ignore_unreadable in 'man sssd-ad' for details.
Connection closed by ::1 port 22
[root@ci-vm-10-0-155-109 ~]#
Message from syslogd@hostname1-8e4a41 at Jan 16 03:51:24 ...
sssd[be[td5e5666.com]][20578]:Group Policy Container with DN [cn={922D526B-A7C5-4919-BE2D-9E87ED3394BC},cn=policies,cn=system,DC=td5e5666,DC=com] is unreadable or has unreadable or missing attributes. In order to fix this make sure that this AD object has following attributes readable: nTSecurityDescriptor, cn, gPCFileSysPath, gPCMachineExtensionNames, gPCFunctionalityVersion, flags. Alternatively if you do not have access to the server or can not change permissions on this object, you can use option ad_gpo_ignore_unreadable = True which will skip this GPO. See ad_gpo_ignore_unreadable in 'man sssd-ad' for details.
Actual results:
The stderr appears twice on the user terminal and the user is not returned to the prompt
Expected results:
1. Sanitized output instead of showing the same stderr generated
2. The output should also be shown only once.
Additional info:
Verified against sssd-2.3.0-7.el8.x86_64
[root@ci-vm-10-0-104-249 ad_gpo_hbac]# ssh allowed_user@localhost
allowed_user@localhost's password:
Connection closed by ::1 port 22
Contains no error message output
Logs contain the error message.
(2020-08-10 19:11:46): [be[adgpo12r83.com]] [ad_gpo_missing_or_unreadable_attr] (0x0020): Group Policy Container with DN [cn={89F1BEFA-DE36-4C85-84A0-03D9EB37650C},cn=policies,cn=system,DC=adgpo12r83,DC=com] is unreadable or has unreadable or missing attributes. In order to fix this make sure that this AD object has following attributes readable: nTSecurityDescriptor, cn, gPCFileSysPath, gPCMachineExtensionNames, gPCFunctionalityVersion, flags. Alternatively if you do not have access to the server or can not change permissions on this object, you can use option ad_gpo_ignore_unreadable = True which will skip this GPO. See ad_gpo_ignore_unreadable in 'man sssd-ad' for details.
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
Description of problem: Failed user login does not return to prompt on login denial due to unreadable GPO Version-Release number of selected component (if applicable): sssd-ad-2.2.3-6.el8 How reproducible: Always Steps to Reproduce: 1. Setup unreadable GPO 2. Setup sssd with following config: # cat /etc/sssd/sssd.conf [sssd] domains = td5e5666.com config_file_version = 2 services = nss, pam [domain/td5e5666.com] ad_domain = td5e5666.com krb5_realm = TD5E5666.COM realmd_tags = manages-system joined-with-adcli cache_credentials = True id_provider = ad krb5_store_password_if_offline = True default_shell = /bin/bash ldap_sasl_authid = CI-VM-10-0-155-$ ldap_id_mapping = True use_fully_qualified_names = True fallback_homedir = /home/%u@%d access_provider = ad ad_gpo_access_control = enforcing ad_gpo_ignore_unreadable = false 3. Try to login using any one of the users # ssh -l kaushik.allow localhost kaushik.allow@localhost's password: Broadcast message from systemd-journald.upshift.rdu2.redhat.com (Thu 2020-01-16 03:51:24 EST): sssd[be[td5e5666.com]][20578]: Group Policy Container with DN [cn={922D526B-A7C5-4919-BE2D-9E87ED3394BC},cn=policies,cn=system,DC=td5e5666,DC=com] is unreadable or has unreadable or missing attributes. In order to fix this make sure that this AD object has following attributes readable: nTSecurityDescriptor, cn, gPCFileSysPath, gPCMachineExtensionNames, gPCFunctionalityVersion, flags. Alternatively if you do not have access to the server or can not change permissions on this object, you can use option ad_gpo_ignore_unreadable = True which will skip this GPO. See ad_gpo_ignore_unreadable in 'man sssd-ad' for details. Connection closed by ::1 port 22 [root@ci-vm-10-0-155-109 ~]# Message from syslogd@hostname1-8e4a41 at Jan 16 03:51:24 ... sssd[be[td5e5666.com]][20578]:Group Policy Container with DN [cn={922D526B-A7C5-4919-BE2D-9E87ED3394BC},cn=policies,cn=system,DC=td5e5666,DC=com] is unreadable or has unreadable or missing attributes. In order to fix this make sure that this AD object has following attributes readable: nTSecurityDescriptor, cn, gPCFileSysPath, gPCMachineExtensionNames, gPCFunctionalityVersion, flags. Alternatively if you do not have access to the server or can not change permissions on this object, you can use option ad_gpo_ignore_unreadable = True which will skip this GPO. See ad_gpo_ignore_unreadable in 'man sssd-ad' for details. Actual results: The stderr appears twice on the user terminal and the user is not returned to the prompt Expected results: 1. Sanitized output instead of showing the same stderr generated 2. The output should also be shown only once. Additional info: