Red Hat Bugzilla – Bug 513250
No Error Message Returned When attempting to Delete a Group that doesn't Exist
Last modified: 2010-01-12 13:41:48 EST
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 $?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. attempt to delete a group that does not exist
no error - return code 0
Error message stating that group doesn't exist and non 0 return code.
fix verified automated daily acceptance tests for regression