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 1445821 - sssd does not evaluate AD UPN suffixes which results in failed user logins
Summary: sssd does not evaluate AD UPN suffixes which results in failed user logins
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.3
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: Sudhir Menon
URL:
Whiteboard:
Depends On: 1441077
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-26 15:05 UTC by Jaroslav Reznik
Modified: 2020-06-11 13:42 UTC (History)
14 users (show)

Fixed In Version: sssd-1.14.0-43.el7_3.15
Doc Type: If docs needed, set a value
Doc Text:
In environments with a trust relationship between Identity Management (IdM) and Active Directory (AD), AD users with an alternative user principal name (UPN) configured were unable to log in. With this update, AD users with an alternative UPN can log in as expected.
Clone Of: 1441077
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 4411 0 None closed sssd does not evaluate AD UPN suffixes which results in failed user logins 2021-02-04 10:59:33 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-04-26 15:05:15 UTC
This bug has been copied from bug #1441077 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 3 Jakub Hrozek 2017-04-26 18:07:24 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3384

Comment 8 Sudhir Menon 2017-06-02 12:52:15 UTC
[root@ipamaster ~]# ipa trust-find
---------------
1 trust matched
---------------
  Realm name: pne.qe
  Domain NetBIOS name: PNE
  Domain Security Identifier: S-1-5-21-2202318585-426110948-4011710778
  Trust type: Active Directory domain
  UPN suffixes: test.qa, pune.in
----------------------------
Number of entries returned 1
----------------------------

Comment 9 Sumit Bose 2017-06-02 13:00:09 UTC
Do you see any related messages in krb5kdc.log on the IPA server? Did you try to restart kdb5kdc on the IPA server to force to reload the UPN suffixes?

Comment 10 Sudhir Menon 2017-06-02 18:35:32 UTC
Tested on RHEL7.3.z using


ipa-server-4.4.0-14.el7_3.7.x86_64
sssd-1.14.0-43.el7_3.18.x86_64
samba-4.4.4-13.el7_3.x86_64
selinux-policy-3.13.1-102.el7_3.16.noarch
krb5-server-1.14.1-27.el7_3.x86_64
389-ds-base-1.3.5.10-21.el7_3.x86_64
pki-server-10.3.3-18.el7_3.noarch


After restarting krb5kdc service, i am able to login using trusted user having UPN set.

[root@ipamaster ~]# systemctl restart krb5kdc.service

[root@ipamaster ~]# ipa trust-find
---------------
1 trust matched
---------------
  Realm name: pne.qe
  Domain NetBIOS name: PNE
  Domain Security Identifier: S-1-5-21-2202318585-426110948-4011710778
  Trust type: Active Directory domain
  UPN suffixes: test.qa, pune.in
----------------------------
Number of entries returned 1
----------------------------

[root@mgmt6 ~]# id aduser2
uid=1261601539(aduser2) gid=1261601539(aduser2) groups=1261601539(aduser2),1261601629(adgroup2),1261601559(adgroup1),1261600513(domain users)

[root@mgmt6 ~]# id aduser2
uid=1261601539(aduser2) gid=1261601539(aduser2) groups=1261601539(aduser2),1261601629(adgroup2),1261601559(adgroup1),1261600513(domain users)


[root@mgmt6 ~]# ssh -l aduser2 ipamaster.rhel73.test
Password:
Last failed login: Fri Jun  2 07:03:09 EDT 2017 from 2620:52:0:1007:250:45ff:fe5f:413d on ssh:notty
There were 13 failed login attempts since the last successful login.
 
Could not chdir to home directory /home/pne.qe/aduser2: No such file or directory
-sh-4.2$ id
uid=1261601539(aduser2) gid=1261601539(aduser2) groups=1261601539(aduser2),1261600513(domain users),1261601559(adgroup1),1261601629(adgroup2) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Comment 12 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.