Bug 2128883

Summary: Cannot SSH with AD user to ipa-client (`krb5_validate` and `pac_check` settings conflict)
Product: Red Hat Enterprise Linux 9 Reporter: Alexey Tikhonov <atikhono>
Component: sssdAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: Steeve Goveas <sgoveas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 9.1CC: aboscatt, pasik, pbrezina, sgadekar, tomek, tscherf
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.8.1-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2128902 (view as bug list) Environment:
Last Closed: 2023-05-09 08:19:51 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:
Bug Depends On:    
Bug Blocks: 2128902    

Description Alexey Tikhonov 2022-09-21 19:29:11 UTC
This bug was initially created as a copy of Bug #2127822

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



User-Agent:       Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0
Build Identifier: 

I got problem with ssh login with user from AD (someuser) to IPA-client Centos Stream 8 server (backupsrv.IPA.LAN).
Same configuration on IPA-client RHEL 8.6 works without any problem.

Logs attached

Reproducible: Always

Steps to Reproduce:
1.ipa-client-install
2.try to ssh to that machine
3.Access denied
Actual Results:  
Using username "someuser".
Keyboard-interactive authentication prompts from server:
End of keyboard-interactive prompts from server
Access denied
Keyboard-interactive authentication prompts from server:
| Password:


Expected Results:  
Last login: Thu Sep 15 16:09:47 2022 from 192.168.195.154
[someuser@backupsrv ~]$

Comment 1 Alexey Tikhonov 2022-09-21 19:37:23 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6356

Comment 4 Alexey Tikhonov 2022-09-23 12:27:00 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6356

* `master`
    * f4dffaeaef16f146fc03970f62761fc335a3c7cc - krb5: respect krb5_validate for PAC checks
* `sssd-2-7`
    * 72132c413a2b19fbc21120ce51698978fd926360 - krb5: respect krb5_validate for PAC checks

Comment 6 Steeve Goveas 2022-11-16 12:23:05 UTC
Tested successfully
=========================== short test summary info ============================
PASSED src/tests/multihost/ipa/test_adtrust.py::TestADTrust::test_ad_user_ssh_ipa_client
================= 1 passed, 32 deselected in 117.03s (0:01:57) =================

[root@client ~]# rpm -q sssd-ipa
sssd-ipa-2.8.1-1.el9.x86_64

Comment 12 errata-xmlrpc 2023-05-09 08:19:51 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-2023:2514