Red Hat Bugzilla – Bug 513247
No Error Message Returned When attempting to Delete a User that doesn't Exist
Last modified: 2010-01-12 13:41:30 EST
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):
Steps to Reproduce:
1. attempt to delete a user that doesn't exist
no error - return code 0
Error message stating that user doesn't exist and non 0 return code.
fix verified automated daily acceptance tests for regression