Bug 1374650
Summary: | sss_cache -r option does not print error message if more than one argument is supplied | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | shridhar <sgadekar> |
Component: | sssd | Assignee: | SSSD Maintainers <sssd-maint> |
Status: | CLOSED ERRATA | QA Contact: | shridhar <sgadekar> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.3 | CC: | grajaiya, jhrozek, lslebodn, mkosek, mzidek, pbrezina, sssd-qe |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | sssd-1.15.0-2.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 09:00:03 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: |
Description
shridhar
2016-09-09 10:38:52 UTC
the same applies to other related option e.g. sss_cache -u user1 user2 user3 (In reply to Lukas Slebodnik from comment #2) > the same applies to other related option > e.g. > sss_cache -u user1 user2 user3 Yes And it also run without any error or warning when the switches/option in Capital letters are used. Such as -U to invalidate all users, -G for all group , -R for all sudo rules. # sss_cache -R rule1 rule2 rule3 # sss_cache -U user1 user2 user3 # sss_cache -G group1 group2 # sss_cache -N netgroup netgroup2 netgrou3 Upstream ticket: https://fedorahosted.org/sssd/ticket/3180 master: 1330390c698ca0802200725df43356557aa633a2 verified with sssd-1.15.2-33.el7.x86_64 [root@shr-r7-permanent ~]# sss_cache -r sudo_rule_1 sudo_rule_2 Usage: sss_cache [-?EUGNSAHR] [-?|--help] [--usage] [-E|--everything] [-u|--user STRING] [-U|--users] [-g|--group STRING] [-G|--groups] [-n|--netgroup STRING] [-N|--netgroups] [-s|--service STRING] [-S|--services] [-a|--autofs-map STRING] [-A|--autofs-maps] [-h|--ssh-host STRING] [-H|--ssh-hosts] [-r|--sudo-rule STRING] [-R|--sudo-rules] [-d|--domain STRING] Unexpected argument(s) provided, options that invalidate a single object only accept a single provided argument. [root@shr-r7-permanent ~]# echo $? 1 :: [ BEGIN ] :: sss_cache -r returned warning :: actually running 'strict eval 'sss_cache -r test test2'' Usage: sss_cache [-?EUGNSAHR] [-?|--help] [--usage] [-E|--everything] [-u|--user STRING] [-U|--users] [-g|--group STRING] [-G|--groups] [-n|--netgroup STRING] [-N|--netgroups] [-s|--service STRING] [-S|--services] [-a|--autofs-map STRING] [-A|--autofs-maps] [-h|--ssh-host STRING] [-H|--ssh-hosts] [-r|--sudo-rule STRING] [-R|--sudo-rules] [-d|--domain STRING] Unexpected argument(s) provided, options that invalidate a single object only accept a single provided argument. :: [ PASS ] :: sss_cache -r returned warning (Expected 1, got 1) 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-2017:2294 |