Bug 513250 - No Error Message Returned When attempting to Delete a Group that doesn't Exist
Summary: No Error Message Returned When attempting to Delete a Group that doesn't Exist
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: 11
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Jakub Hrozek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-22 17:36 UTC by Jenny Severance
Modified: 2010-01-12 18:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-12 18:22:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jenny Severance 2009-07-22 17:36:31 UTC
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 Severance 2010-01-12 18:41:48 UTC
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.