|
From: Jamie C. <jca...@we...> - 2005-11-23 11:06:43
|
On 23/Nov/2005 20:18 Murray Trainer wrote .. > Hi Jamie, > > The module itself works fine when I add a new LDAP user but the script > it runs to configure the new user's Linux account after the user is > created, broke a few days ago. I am not aware of anything being changed > so I'm not sure what caused this problem. The shell script does an "su > - $USERADMIN_USER" to become the new user to run gconftool2 and other > things. For some reason I started getting an error that the new user > I'm su'ing doesn't exist. It appears to be something to do with the > name service cache daemon nscd. I have hacked my script to restart nscd > from my script before I su to the new user - that fixes the problem for > now. As a proper fix, shouldn't the webmin LDAP Users module do a flush > of the NSCD cache whenever it adds or removes users to make sure > everything is immediately in sync? Actually, this should already happen.. If there is an nscd process running, it gets signalled to reload the cache with a HUP signal after a user is created. What command are you using to restart nscd? - Jamie |