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 1890177 - Clarify "single_prompt" option in "PROMPTING CONFIGURATION SECTION" section of sssd.conf man page
Summary: Clarify "single_prompt" option in "PROMPTING CONFIGURATION SECTION" section o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.3
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Sumit Bose
QA Contact: Jakub Vavra
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-21 15:17 UTC by Divya Mittal
Modified: 2021-11-10 09:01 UTC (History)
13 users (show)

Fixed In Version: sssd-2.5.0-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:46:34 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 5586 0 None open Clarify "single_prompt" option in "PROMPTING CONFIGURATION SECTION" section of sssd.conf man page 2021-04-16 12:06:19 UTC
Red Hat Product Errata RHBA-2021:4435 0 None None None 2021-11-09 19:46:50 UTC

Description Divya Mittal 2020-10-21 15:17:33 UTC
Description of problem: User login is not working if password prompt is changed to single prompt when 2FA is enabled on User level

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

 On ipaserver(also an IPA client), auth-ind is not set so it will take default value(which depends on global configuration or user-level settings)
---
[root@ipaserver ~]# ipa host-show ipaserver.idm.ipa.com --raw | grep authind
[root@ipaserver ~]# 
---

---
[root@ipaserver ~]# ipa user-show otptest --raw | grep ipauserauthtype <--------- 2FA is enabled for user otptest
  ipauserauthtype: otp
  ipauserauthtype: password
---

   So only "password" should be enough to authenticate and it works fine: 
---
[root@ipaserver ~]# ssh otptest@`hostname`
First Factor: 
Second Factor (optional):  <----- BLANK
Last failed login: Wed Sep  2 09:27:27 EDT 2020 from ipaserver.idm.ipa.com on ssh:notty
There were 2 failed login attempts since the last successful login.
Last login: Wed Sep  2 09:17:39 2020 from localhost
This server is managed by Ansible.
Test
-sh-4.2$ 
---
 
   After changing prompting to provide single prompt doesn't work though, tried this:
---
[prompting/2fa/sshd]
single_prompt = true
first_prompt = Enter Password:
---

   Thought prompt is changed to single prompt but putting just password doesn't work:
---
[root@ipaserver ~]# ssh otptest@`hostname`
Enter Password:
Enter Password:
Enter Password:
---
   as OTP is optional here. Ideally, this should have worked.

Actual results:


Though prompt is changed to single prompt but putting just password doesn't work:
---
[root@ipaserver ~]# ssh otptest@`hostname`
Enter Password:
Enter Password:
Enter Password:
---
   as OTP is optional here. Ideally, this should have worked.


Expected results:

Login should work with only password as otp is optional


Additional info:

Comment 2 Florence Blanc-Renaud 2020-11-05 10:34:23 UTC
Re-assigning the BZ to sssd component as it looks related to sssd configuration.

Comment 4 Sumit Bose 2020-11-06 06:14:09 UTC
Hi,

this is expected as described in the sssd.conf man page:

    single_prompt
        boolean value, if True there will be only a single prompt using the value of first_prompt where it is expected that both factors are entered as a single string

Please let me know if the wording should be changed to make this more clear.

Since the KDC on the server expects a single password and password+otp in different formats only one type can be tried at a given time. Since SSSD tries to avoid try-and-error during authentication with a given prompting type only a single authentication token type can be used.

HTH

bye,
Sumit

Comment 13 Sumit Bose 2021-04-15 07:30:33 UTC
Upstream ticket:
https://github.com/SSSD/sssd/issues/5586

Comment 14 Pavel Březina 2021-04-20 09:14:45 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/5588

* `master`
    * e0fcec928ec3bb5ae0e7fa753783a8820b01223a - man: clarify single_prompt option

Comment 21 errata-xmlrpc 2021-11-09 19:46:34 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-2021:4435


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