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 1856861 - False errors/warnings are logged in sssd.log file after enabling 2FA prompting settings in sssd.conf
Summary: False errors/warnings are logged in sssd.log file after enabling 2FA promptin...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.2
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: rc
: 8.0
Assignee: Iker Pedrosa
QA Contact: sssd-qe
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-14 15:16 UTC by Akshay Sakure
Modified: 2023-10-06 21:05 UTC (History)
10 users (show)

Fixed In Version: sssd-2.3.0-8.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:05:29 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4569 0 None None None 2020-11-04 02:05:42 UTC

Description Akshay Sakure 2020-07-14 15:16:21 UTC
Description of problem:
False errors/warnings are logged in sssd.log file after enabling 2FA prompting settings in sssd.conf


Version-Release number of selected component (if applicable):
sssd-2.2.3-20.el8.x86_64


How reproducible:
Always


Steps to Reproduce:
1. Enable 2FA prompting settings in sssd.conf
2. Restart sssd service
3. Check /var/log/sssd/sssd.log file


Actual results:
False errors/warnings are observed in /var/log/sssd/sssd.log file after restarting sssd service post enabling 2FA prompting settings in sssd.conf.
---
(Tue Jul 14 11:01:17:259149 2020) [sssd] [sss_ini_call_validators] (0x0020): [rule/allowed_sections]: Section [prompting/password] is not allowed. Check for typos.
(Tue Jul 14 11:01:17:259335 2020) [sssd] [sss_ini_call_validators] (0x0020): [rule/allowed_sections]: Section [prompting/2fa] is not allowed. Check for typos.
---


Expected results:
There shouldn't be any warnings/errors in /var/log/sssd/sssd.log


Additional info:
These seem to be false errors/warnings and can be ignored. 
2FA prompting actually works as expected.
'sssctl config-check' shows these warnings too:
---
# sssctl config-check
Issues identified by validators: 2
[rule/allowed_sections]: Section [prompting/password] is not allowed. Check for typos.
[rule/allowed_sections]: Section [prompting/2fa] is not allowed. Check for typos.

Messages generated during configuration merging: 0

Used configuration snippet files: 0
---

Comment 3 Iker Pedrosa 2020-08-04 13:50:48 UTC
Upstream ticket:
https://github.com/SSSD/sssd/issues/5259

Comment 4 Pavel Březina 2020-08-20 09:47:48 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/5260

* `master`
    * 4526858adb58736066a0b2cf2dc793ddfe671b2b - config: allow prompting options in configuration

Comment 8 Madhuri 2020-09-03 06:56:27 UTC
Verified wih:

[root@ci-vm-10-0-154-254 ~]# rpm -qa sssd sssd-tools
sssd-tools-2.3.0-8.el8.x86_64
sssd-2.3.0-8.el8.x86_64

Verifications steps:
1) Install sssd and sssd-tools package

2) Enable 2FA prompting settings in sssd.conf

[root@ci-vm-10-0-154-254 ~]# tail -9 /etc/sssd/sssd.conf 
[prompting/2fa/sshd]
#first_prompt=Enter OTP Token Value:
single_prompt=true

[prompting/2fa]
single_prompt = True
first_prompt = Prompt1
second_prompt = Prompt2

3) change the permission and ownership to 600 and root, restart sssd service.

4) Check the static analysis of sssd.conf using # sssctl config-check command

[root@ci-vm-10-0-154-254 ~]# sssctl config-check
Issues identified by validators: 0

Messages generated during configuration merging: 0

Used configuration snippet files: 0


Not showing any warning messages, thus from above
marking this verified.

Comment 11 errata-xmlrpc 2020-11-04 02:05:29 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-2020:4569


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