Bug 513250 - No Error Message Returned When attempting to Delete a Group that doesn't Exist
No Error Message Returned When attempting to Delete a Group that doesn't Exist
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: sssd (Show other bugs)
11
All Linux
high Severity medium
: ---
: ---
Assigned To: Jakub Hrozek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-22 13:36 EDT by Jenny Galipeau
Modified: 2010-01-12 13:41 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-01-12 13:22:35 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Jenny Galipeau 2009-07-22 13:36:31 EDT
Description of problem:

Deleting a group that doesn't exist in the LOCAL sss domain appears to be
successful.  A administrator that mistyped the group name will think that group is
deleted when it was not.

[root@jennyF11 etc]# ldbsearch -H /var/lib/sss/db/sssd.ldb -b "name=mygroup,cn=groups,cn=LOCAL,cn=sysdb"
asq: Unable to register control with rootdse!
# returned 0 records
# 0 entries
# 0 referrals
[root@jennyF11 etc]# sss_userdel mygroup
[root@jennyF11 etc]# echo $?
0


Version-Release number of selected component (if applicable):

sssd-debuginfo-0.4.1-1.fc11.i586
sssd-0.4.1-1.fc11.i586

How reproducible:
always

Steps to Reproduce:
1. attempt to delete a group that does not exist
2.
3.
  
Actual results:
no error - return code 0


Expected results:
Error message stating that group doesn't exist and non 0 return code.


Additional info:
Comment 1 Jenny Galipeau 2010-01-12 13:41:48 EST
fix verified automated daily acceptance tests for regression

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