#113 provider = files sss_userdel and sss_groupdel are successful but non-zero return code and an error message
Closed: Fixed Opened by jgalipea.

Description:

When deleting a user/group that was added with the sssd tools, the deletion is successful (user is removed from /etc/passwd and it's magic private group removed - group is removed from /etc/group), but the command takes too long and then returns the following error and return code: [[BR]]

[root@jennyF11 ~]# sss_userdel user1000 [[BR]]
No such user[[BR]]
[root@jennyF11 ~]# echo $?[[BR]]
1[[BR]]

Configuration:

[services]
description =  Local Service Configuration
activeServices = nss, pam
reconnection_retries = 3
[services/nss]
description = NSS Responder Configuration
filterGroups = root
filterUsers = root
debug-level = 4
[services/dp]
description = Data Provider Configuration
debug-level = 4
[services/pam]
description = PAM Responder Configuration
[services/monitor]
description = Service Monitor Configuration
[domains]
description = Domains served by SSSD
domains = FILES
[domains/FILES]
description = Local Files Users and groups domain
enumerate = 3
minId = 1000
maxId = 1999
magicPrivateGroups = TRUE
provider = files

Steps to Reproduce:
1. install sssd and use the above configuration[[BR]]
2. add a user[[BR]]
sss_useradd -u 1000 -h /home/user1000 -s /bin/bash user1000[[BR]]
3. delete the user[[BR]]
sss_userdel user1000[[BR]]

ACTUAL RESULTS:[[BR]]
No such user[[BR]]
return code 1 [[BR]]

EXPECTED RESULTS:
no error [[BR]]
return code 0


Fields changed

component: SSSD => sss_tools
owner: somebody => jhrozek

Fixed with 9c0069c375d041b2af7a1b1ffbd32ac3955f150c

fixedin: => 0.5.0
resolution: => fixed
status: new => closed

Fields changed

rhbz: => 0

Metadata Update from @jgalipea:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.0

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1155

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata