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 1138555 - RFE: sssd should support time format without minutes and seconds in sudo entries
Summary: RFE: sssd should support time format without minutes and seconds in sudo entries
Keywords:
Status: CLOSED DUPLICATE of bug 1138255
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.6
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: Kaushik Banerjee
URL:
Whiteboard:
Depends On: 1138255
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-05 07:30 UTC by David Spurek
Modified: 2020-05-02 17:48 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 1138255
Environment:
Last Closed: 2014-09-11 12:55:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 3474 0 None None None 2020-05-02 17:48:05 UTC

Description David Spurek 2014-09-05 07:30:39 UTC
The same problem in rhel6, tested with sudo-1.8.6p3-15.el6 and sssd-1.11.6-28.el6
+++ This bug was initially created as a clone of Bug #1138255 +++

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:37:27 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/2432

Comment 2 Martin Kosek 2014-09-11 12:47:41 UTC
Postponed to older RHEL release. As this is a low priority RFE, please do not expect an expedite fix. If the problem blocks anyone or there is a customer request behind it, please bump the Bugzilla so that we can reprioritize.

Comment 3 Martin Kosek 2014-09-11 12:55:24 UTC
As this bug is not planned to be fixed until an explicit customer request, we decided to instead close this bug as a duplicate of RHEL-7.1 variant (Bug 1138255) which is already tracking this issue.

*** This bug has been marked as a duplicate of bug 1138255 ***


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