AFP548

LoginHooks/MCX Login Scripts not working in Leopard?

Hi, I've just taken delivery of our first Leopard machine and set about trying to integrate it with our Tiger 10.4.11 Open Directory Server. I'm impressed so far with the AutoFS implementation, and the inability to do SSL to an Open Directory Server out of the box is pretty inexcusable (Linux prompts you for certificates to configure openldap, why can't user friendly OS X do this!) but have come across a major flaw that has lead to me having to install Tiger on the machine. No matter what I try I can't get MCX Login Scripts to work. I've got the script we use with Tiger in the OD record for the computer group and have setup the config with: sudo defaults write com.apple.loginwindow EnableMCXLoginScripts -bool TRUE sudo defaults write com.apple.loginwindow MCXScriptTrust -string Authenticated Nothing happens. I've tried upping the trust level (changing the bind settings as per the OSX Server docs) but to no avail. I've also tried copying the script to the local disc and then making that a login hook: sudo defaults write com.apple.loginwindow LoginHook /Library/Managed/loginscript.sh but again nothing. Although I know the script works fine on Tiger, I've tried a very simple script that just creates a local folder at the user, but nothing. The Console and system.log don't show any obviously related error messages. Has anyone successfully managed to get LoginHook/Login Scripts to work on Leopard, or is this a feature to be restored in 10.5.2?
Exit mobile version