Bug 513247

Summary: No Error Message Returned When attempting to Delete a User 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   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-12 13:22:20 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:17:30 EDT
Description of problem:

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

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

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


How reproducible:

Steps to Reproduce:
1. attempt to delete a user that doesn't exist
Actual results:
no error - return code 0

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

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