Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1138255

Summary: RFE: sssd should support time format without minutes and seconds in sudo entries
Product: Red Hat Enterprise Linux 7 Reporter: David Spurek <dspurek>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED WONTFIX QA Contact: Namita Soman <nsoman>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: grajaiya, jgalipea, jhrozek, lslebodn, mkosek, pbrezina, pkis
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1138555 (view as bug list) Environment:
Last Closed: 2017-03-28 07:57:44 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: 1138555    

Description David Spurek 2014-09-04 11:36:08 UTC
Description of problem:
sssd doesn't support time format without minutes and seconds in sudo entries (sudoNotBefore and sudoNotAfter).

Minutes and seconds portions are optional according to sudoers.ldap man page. It says:
he minute and seconds portions are optional, but some LDAP servers require that they be present (contrary to the RFC).


dn: cn=rule_allow,ou=Sudoers,dc=my-domain,dc=com
objectClass: top
objectClass: sudoRole
cn: rule_allow
sudoHost: ALL
sudoUser: userallowed
sudoCommand: ALL
sudoNotBefore: 2014090309Z
 
[test]date -u
Thu Sep  4 09:27:38 UTC 2014
 
[test]su - userallowed -c 'sudo true'
su: warning: cannot change directory to /home/userallowed: No such file or directory
userallowed is not allowed to run sudo on rhel7.  This incident will be reported.

/var/log/sssd/sssd_sudo.log contains 'Invalid time format in rule [rule_allow]!'

Version-Release number of selected component (if applicable):
sssd-1.11.2-65.el7
sudo-1.8.6p7-11.el7

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jakub Hrozek 2014-09-05 08:33:27 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/2432

Comment 2 Martin Kosek 2014-09-11 12:55:24 UTC
*** Bug 1138555 has been marked as a duplicate of this bug. ***

Comment 3 Martin Kosek 2014-09-11 13:08:38 UTC
It is too late for considering the bug for 7.1, moving to later RHEL version. If there is any pending customer request, please bump this bug to achieve a more expedite fix.

Comment 6 Jakub Hrozek 2016-11-23 14:24:42 UTC
Thank you for filing this bug report.

Since fixing this bug requires work in the upstream SSSD project which is not scheduled for the immediate future, I added a conditional development nack, pending upstream availability.

Comment 7 Jakub Hrozek 2017-03-28 07:57:44 UTC
Upstream has declined the request, therefore I'm closing this downstream tracking bugzilla as well.