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 1200873 - [RFE] Allow smart multi step prompting when user logs in with password and token code from IPA
Summary: [RFE] Allow smart multi step prompting when user logs in with password and to...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: Kaushik Banerjee
Milan Navratil
URL:
Whiteboard:
Depends On:
Blocks: 1181710
TreeView+ depends on / blocked
 
Reported: 2015-03-11 14:35 UTC by Martin Kosek
Modified: 2020-05-02 18:07 UTC (History)
9 users (show)

Fixed In Version: sssd-1.13.0-0.1.alpha.el7
Doc Type: Release Note
Doc Text:
Multi-step prompting for one-time and long-term passwords When using a one-time password (a token) together with a long-term password to log in, the user is prompted for both passwords separately. This results in better user experience when using one-time passwords as well as a safer long-term password extraction, which allows long-term password caching to be used for offline authentication.
Clone Of:
: 1249088 (view as bug list)
Environment:
Last Closed: 2015-11-19 11:36:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 3377 0 None None None 2020-05-02 17:42:34 UTC
Github SSSD sssd issues 3770 0 None None None 2020-05-02 18:07:42 UTC
Red Hat Product Errata RHSA-2015:2355 0 normal SHIPPED_LIVE Low: sssd security, bug fix, and enhancement update 2015-11-19 10:27:42 UTC

Description Martin Kosek 2015-03-11 14:35:33 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/sssd/ticket/2335

Right now user is prompted for password and token code in one prompt. It makes it extremely hard to determine which part of the input is user password that can be cached locally for the offline use case and which part is the code. The feature would allow consulting Kerberos to determine how to properly prompt user.

Comment 2 Jakub Hrozek 2015-07-29 12:38:07 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/2729

Comment 3 Jakub Hrozek 2015-07-29 16:45:09 UTC
Additional fix: b698a04b37ad33e3de5bee82edc6e0e7b5ba2cfe

Comment 4 Namita Soman 2015-09-22 02:36:49 UTC
Verified using ipa-server-4.2.0-10.el7.x86_64

Added ipa user, assigned otp token, config'd user to auth using otp
Then auth'd this user using two factor auth:
# su - admin
su: warning: cannot change directory to /home/admin: No such file or directory

-bash-4.2$ su - one
First Factor: 
Second Factor: 
Last login: Mon Sep 21 21:57:50 EDT 2015 on pts/0
su: warning: cannot change directory to /home/one: No such file or directory

-sh-4.2$ id
uid=792800001(one) gid=792800001(one) groups=792800001(one) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

-sh-4.2$ klist
Ticket cache: KEYRING:persistent:792800001:krb_ccache_QTO0sZK
Default principal: one

Valid starting       Expires              Service principal
09/21/2015 21:58:44  09/22/2015 21:58:43  krbtgt/TESTRELM.TEST

tested user can auth with server offline.
# ipactl stop

-bash-4.2$ su - one
Password: 
Last login: Mon Sep 21 22:16:53 EDT 2015 on pts/0
su: warning: cannot change directory to /home/one: No such file or directory

-sh-4.2$ klist
Ticket cache: KEYRING:persistent:792800001:krb_ccache_QTO0sZK
Default principal: one

Valid starting       Expires              Service principal
09/21/2015 21:58:44  09/22/2015 21:58:43  krbtgt/TESTRELM.TEST

Verified even though login was at 22:16, old tkt was not refreshed since user is auth'ing offline

# ipactl start

Verified local user can still login as it would normally:
[root@dell-per320-01 ~]# useradd linuxuser1
[root@dell-per320-01 ~]# passwd linuxuser1

[linuxuser1@dell-per320-01 ~]$ su - admin
Password: 
Last login: Mon Sep 21 22:17:17 EDT 2015 on pts/0
su: warning: cannot change directory to /home/admin: No such file or directory

-bash-4.2$ su - linuxuser1
Password: 
Last login: Mon Sep 21 22:23:15 EDT 2015 on pts/0

Was not prompted for two factors

Comment 5 errata-xmlrpc 2015-11-19 11:36:09 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://rhn.redhat.com/errata/RHSA-2015-2355.html


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