Description of problem: There is a race condition in smbldap-tools. It restarts nscd. If two instances are run, there is a possibility, that nscd will not start after stop. Version-Release number of selected component (if applicable): smbldap-tools-0.9.5-2.fc9.noarch How reproducible: Occasionally. On many parallel changes on ldap it is quiet often. Steps to Reproduce: 1. Run nscd. 2. Do many parallel updates of users and groups in ldap. 3. Wait for nscd not to start. Actual results: smbldap-tools stops nscd. Expected results: nscd ramians running. Additional info: I think there is no reason for doing anything to nscd. The restart to nscd does not invalidate cache or anything else. If there is a need to invalidate the cache, it should be done through /usb/sbin/nscd -i passwd and /usr/sbin/nscd -i group. Also I suspect that if I add 10000 users to a group by /usr/sbin/smbldap-tools -m u1,u2,u3,...,u10000 groupname than nscd is restarted 10000 times after adding every user.
*** Bug 465230 has been marked as a duplicate of this bug. ***
I'm of the opinion that smbldap-tools shouldn't do anything to nscd; the only possible benefit to doing it is to refresh the passwd/group database on the machine smbldap-tools is running on, but it doesn't help any other client of the LDAP server that might be running nscd. So I intend to patch out the references to nscd. Anybody disagree?
(In reply to comment #2) > I'm of the opinion that smbldap-tools shouldn't do anything to nscd; the only > possible benefit to doing it is to refresh the passwd/group database on the > machine smbldap-tools is running on, but it doesn't help any other client of > the LDAP server that might be running nscd. So I intend to patch out the > references to nscd. > > Anybody disagree? OK, I disagree with myself. I'm patching it to invalidate the passwd and group caches whenever it would have done a start, stop, or restart of nscd. I have packages built with this patch that you can test here: http://mirror.city-fan.org/ftp/contrib/yum-repo/fc9/x86_64/repoview/smbldap-tools.html
smbldap-tools-0.9.5-4.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/smbldap-tools-0.9.5-4.fc10
smbldap-tools-0.9.5-4.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/smbldap-tools-0.9.5-4.fc9
smbldap-tools-0.9.5-4.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing-newkey update smbldap-tools'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2009-3659
I confirm the bug is fixed. I have nscd running for 19 days now.
Thanks; I'll get the update pushed to stable.
smbldap-tools-0.9.5-4.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
smbldap-tools-0.9.5-4.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.