Description:
Deleting a user that was added before SSSD install and outside the allowed id range causes a segmentation fault.[[BR]]
Debug
Loaded symbols for /lib/libnss_files-2.10.1.so Core was generated by `sss_userdel jenny'. Program terminated with signal 11, Segmentation fault. #0 0x0804b61f in user_del (req=0x8073678) at tools/sss_userdel.c:95 95 data->domain->name, data->name);
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:[[BR]] 1. add a local user[[BR]] useradd jenny[[BR]] 2. install sssd and use above configuration[[BR]] 3. delete user jenny[[BR]] sss_userdel jenny[[BR]]
ACTUAL RESULTS:[[BR]] Segmentation fault (core dumped)[[BR]] user is removed from the /etc/passwd file and private group removed from /etc/group[[BR]]
EXPECTED RESULTS[[BR]] User deleted successfully or error the UID is out of range?[[BR]] no segmentation fault[[BR]]
*Version:[[BR]] sssd-2009081714-0.fc11.i586
Note: It doesn't matter that the id is out of range. It occurs when the id is in range too.
Replying to [comment:1 jgalipea]:
Ignore this - the seg fault is only with out of range users added by shadow utils.
Fields changed
component: SSSD => sss_tools owner: somebody => jhrozek
Fixed with 9c0069c375d041b2af7a1b1ffbd32ac3955f150c
fixedin: => 0.5.0 resolution: => fixed status: new => closed
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/1156
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.