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 1486786 - sssd going in offline mode due to sudo search filter.
Summary: sssd going in offline mode due to sudo search filter.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-30 14:28 UTC by Gaurav Swami
Modified: 2020-12-14 09:46 UTC (History)
11 users (show)

Fixed In Version: sssd-1.16.0-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 17:16:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 4533 0 None None None 2020-05-02 18:47:48 UTC
Red Hat Product Errata RHEA-2018:0929 0 None None None 2018-04-10 17:17:27 UTC

Description Gaurav Swami 2017-08-30 14:28:22 UTC

Comment 3 Jakub Hrozek 2017-08-30 14:44:16 UTC
Pavel, this can you take a look, please?

Comment 6 Jakub Hrozek 2017-09-11 13:50:55 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3507

Comment 7 Lukas Slebodnik 2017-10-19 11:37:49 UTC
master:
* bc854800cc67271205d63136daaf68d7863cea6b

Comment 15 Nikhil Dehadrai 2018-01-24 11:08:35 UTC
IPA-VERSION: ipa-server-4.5.4-8.el7.x86_64
SSSD-VERSION: sssd-1.16.0-14.el7.x86_64

Tested the bug with following setup and observations:

Setup:
----------
1) 100 sudo rules,
2) 100 sudo command groups
3) 926 sudo commands (used commands from /usr/bin)
4) IPA-AD Trust is setup

Observations:
1. Verified that "Connection Timed out" error message is not observed
2. Verified that sudo rule works as expected for the user defined in sudorule ( In my case it is tuser)
3. Verified that appropriate sudo message is returned when user with no sudo rule defined tries to access/ make changes to the client (in my case user is nonsudo)
 

IPA-MASTER:
-------------
[root@ndipa bz1486786]# id administrator
uid=1577600500(administrator) gid=1577600500(administrator) groups=1577600500(administrator),1577600520(group policy creator owners),1577600519(enterprise admins),1577600512(domain admins),1577600518(schema admins),1577600513(domain users)
[root@ndipa ~]# ipa sudorule-show files-commands
  Rule name: files-commands
  Enabled: TRUE
  Users: tuser
  Hosts: auto-hv-01-guest08.testrelm.test
  Sudo Allow Commands: /usr/bin/vim
  Sudo Deny Commands: /usr/bin/alias, /usr/bin/as
[root@ndipa bz1486786]# cat /var/log/sssd/sssd.log | grep "Connection timed out"
[root@ndipa bz1486786]# grep -rn "Connection timed out" /var/log/sssd
[root@ndipa bz1486786]#

IPA-CLIENT:
-------------
tuser: sudorule:
------------------
# su tuser
sh-4.2$ cat test_file_bz.txt 
test
bz
file
sh-4.2$ sudo /usr/bin/vim test_file_bz.txt
sh-4.2$ #confirmed sudo user rule works as expected
sh-4.2$ cat test_file_bz.txt 
test
bz
file
tuser Added this comment
sh-4.2$ /usr/bin/sudo -l
Matching Defaults entries for tuser on auto-hv-01-guest08:
    !visiblepw, always_set_home, match_group_by_gid, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR
    LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE
    LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE",
    env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin

User tuser may run the following commands on auto-hv-01-guest08:
    (root) /usr/bin/vim, !/usr/bin/as, !/usr/bin/alias
sh-4.2$ 


nonsudo: norule
----------------
# su nonsudo
sh-4.2$ /usr/bin/sudo -l
[sudo] password for nonsudo: 
Sorry, user nonsudo may not run sudo on auto-hv-01-guest08.
sh-4.2$ 


Thus on the basis of above observations, marking the status of Bugzilla to "VERIFIED".

Comment 18 errata-xmlrpc 2018-04-10 17:16:19 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://access.redhat.com/errata/RHEA-2018:0929


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