Bug 2228529

Summary: [RFE] Second Factor prompts in IPA (password + OTP) are misleading.
Product: Red Hat Enterprise Linux 9 Reporter: Danish Shaikh <dshaikh>
Component: sssdAssignee: sssd-maint
Status: NEW --- QA Contact: sssd-qe
Severity: high Docs Contact:
Priority: unspecified    
Version: 9.2CC: atikhono, ftrivino, pbrezina, rcritten, tscherf
Target Milestone: rcKeywords: FutureFeature
Target Release: ---Flags: atikhono: needinfo? (dshaikh)
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Danish Shaikh 2023-08-02 14:35:39 UTC
Description of problem:

RHEL 9.2
ipa-server-4.10.1-8.el9_2.s390x


Second Factor prompts in (password + OTP) are misleading.

While the prompts would lead a user to enter the 2 factors in the separate prompts, they in fact needed to be entered in the first prompt only, or authentication failed." 


Actual results:

The ssh prompts look like:
 First Factor:
| Second Factor:
                 Send automatic password (Using keyboard-interactive authentication)


1. If I supplied the password+OTP to the first factor, and nothing to the second factor, I get in.

2. However If the password and OTP are supplied to separate Factor prompts, the login fails.

For the average user, the current prompting would be misleading.


Expected results:

There should only be a single prompt for password+OTP token.



Regards,
Danish Shaikh

Comment 2 Trivino 2023-08-07 12:29:50 UTC
I think this ticket is a duplicate of an old ticket:
https://github.com/SSSD/sssd/issues/4846

It was marked as wontfix, hence moving to sssd component for a re-evaluation.

Comment 3 Alexey Tikhonov 2023-08-07 13:20:39 UTC
> There should only be a single prompt for password+OTP token.

Please see `man sssd.conf`::PROMPTING CONFIGURATION SECTION::[prompting/2fa]::single_prompt

Would this work for your use case?