Bug 513250

Summary: No Error Message Returned When attempting to Delete a Group that doesn't Exist
Product: [Fedora] Fedora Reporter: Jenny Galipeau <jgalipea>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: 11CC: jhrozek, sbose, sgallagh, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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:
Cloudforms Team: ---

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