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 1450125 - Wrong pam return code for user from subdomain with ad_access_filter
Summary: Wrong pam return code for user from subdomain with ad_access_filter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: shridhar
URL:
Whiteboard:
Depends On: 1434992
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-11 15:19 UTC by Jaroslav Reznik
Modified: 2020-05-04 11:01 UTC (History)
9 users (show)

Fixed In Version: sssd-1.14.0-43.el7_3.17
Doc Type: If docs needed, set a value
Doc Text:
On SSSD clients joined to an Active Directory (AD) domain whose configuration includes the ad_access_filter option in the /etc/sssd/sssd.conf file, authentication sometimes failed with with an error such as this: 10 (User not known to the underlying authentication module) The problem occurred in environments that use nested groups. This update fixes this bug.
Clone Of: 1434992
Environment:
Last Closed: 2017-06-28 17:00:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 4362 0 None None None 2020-05-04 11:01:54 UTC
Red Hat Product Errata RHBA-2017:1605 0 normal SHIPPED_LIVE sssd bug fix update 2017-06-28 20:56:25 UTC

Description Jaroslav Reznik 2017-05-11 15:19:36 UTC
This bug has been copied from bug #1434992 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 5 shridhar 2017-06-13 13:51:05 UTC
verified with 
 ~]# rpm -q sssd
sssd-1.14.0-43.el7_3.18.x86_64

[root@hp-dl180g6-01 ~]# cat /etc/sssd/sssd.conf

[sssd]
config_file_version = 2
services = nss, pam
domains = sssdad.com

[domain/sssdad.com]
debug_level = 0x0180
id_provider = ad
use_fully_qualified_names = True
krb5_auth_timeout = 15

access_provider=ad
ad_access_filter=(cn=user1_dom1-1902875)



[root@hp-dl180g6-01 ~]# service sssd stop; rm -rf /var/lib/sss/db/* ; service sssd start
Redirecting to /bin/systemctl stop  sssd.service
Redirecting to /bin/systemctl start  sssd.service
[root@hp-dl180g6-01 ~]# id user1_dom1-1902875
uid=406926074(user1_dom1-1902875) gid=1239000513(domain users) groups=1239000513(domain users),406926075(group1_dom1-1902875)
[root@hp-dl180g6-01 ~]# id user1_dom3-1902875.com
uid=369612070(user1_dom3-1902875.com) gid=369612070(user1_dom3-1902875.com) groups=369612070(user1_dom3-1902875.com),369612073(group1_dom3-1902875.com),369600513(domain users.com)
[root@hp-dl180g6-01 ~]# id user1_dom2-1902875
uid=494810470(user1_dom2-1902875) gid=494810470(user1_dom2-1902875) groups=494810470(user1_dom2-1902875),494810471(group1_dom2-1902875),494800513(domain users),494810472(group2_dom2-1902875)
[root@hp-dl180g6-01 ~]# ssh -l  user1_dom2-1902875 localhost
user1_dom2-1902875@sssdad_tree@localhost's password: 
Connection closed by ::1
[root@hp-dl180g6-01 ~]# ssh -l user1_dom3-1902875.com localhost
user1_dom3-1902875@localhost's password: 
Connection closed by ::1
[root@hp-dl180g6-01 ~]# ssh -l user1_dom1-1902875 localhost 
user1_dom1-1902875@localhost's password: 
Last login: Tue Jun 13 09:36:00 2017

-sh-4.2$ logout
Connection to localhost closed.


in /var/log/secure

Jun 13 09:46:44 hp-dl180g6-01 sshd[1397]: pam_sss(sshd:account): Access denied for user user1_dom2-1902875: 6 (Permission denied)
Jun 13 09:46:44 hp-dl180g6-01 sshd[1397]: Failed password for user1_dom2-1902875 from ::1 port 41556 ssh2
Jun 13 09:46:44 hp-dl180g6-01 sshd[1397]: fatal: Access denied for user user1_dom2-1902875 by PAM account configuration [preauth]
Jun 13 09:47:06 hp-dl180g6-01 sshd[1598]: pam_sss(sshd:auth): authentication success; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost user=user1_dom3-1902875.com
Jun 13 09:47:06 hp-dl180g6-01 sshd[1598]: pam_sss(sshd:account): Access denied for user user1_dom3-1902875.com: 6 (Permission denied)
Jun 13 09:47:06 hp-dl180g6-01 sshd[1598]: Failed password for user1_dom3-1902875.com from ::1 port 41564 ssh2
Jun 13 09:47:06 hp-dl180g6-01 sshd[1598]: fatal: Access denied for user user1_dom3-1902875.com by PAM account configuration [preauth]
Jun 13 09:47:26 hp-dl180g6-01 sshd[1749]: pam_sss(sshd:auth): authentication success; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost user=user1_dom1-1902875
Jun 13 09:47:26 hp-dl180g6-01 sshd[1749]: Accepted password for user1_dom1-1902875 from ::1 port 41572 ssh2
Jun 13 09:47:26 hp-dl180g6-01 sshd[1749]: pam_unix(sshd:session): session opened for user user1_dom1-1902875 by (uid=0)
Jun 13 09:47:27 hp-dl180g6-01 sshd[1801]: Received disconnect from ::1: 11: disconnected by user
Jun 13 09:47:27 hp-dl180g6-01 sshd[1749]: pam_unix(sshd:session): session closed for user user1_dom1-1902875

Comment 7 errata-xmlrpc 2017-06-28 17:00:01 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, 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-2017:1605


Note You need to log in before you can comment on or make changes to this bug.