Skip to main content
Question

MCX, Configuration Profiles and Login Scripts


Forum|alt.badge.img+6

Hi all,

I am currently working on getting my login scripts working via a configuration profile. I am using Casper 9.32 and only bind to Active Directory.

Workgroup manager and Caspers Configuration Profile for 'Loginwindow" under "scripts" says the following:-

------------------------------------------------------------------------------------------------------
The above settings require specific properties in the file
~root/Library/Preferences/com.apple.loginwindow.plist, located on the client computer:
- Set EnableMCXLoginScripts to TRUE.
- Set MCXScriptTrust to match the binding settings used to connect the client computer to the directory domain.
------------------------------------------------------------------------------------------------------

I have done the first part by using the following command:-

defaults write /var/root/Library/Preferences/com.apple.loginwindow EnableMCXLoginScripts TRUE

I am aware I can set the MCXScriptTrust to "Anonymous" which should work anyway (not sure on the capitalisation) but how can I find "the binding settings used to connect the client computer to the directory domain" when I just use the JAMF AD bind to join. Is there a simple command to find the MCXScriptTrust settings i should be applying?

Cheers

2 replies

Forum|alt.badge.img+6
  • Author
  • Contributor
  • 108 replies
  • August 19, 2014

Ok must be something else wrong as its not working. I have changed EnableMCXScripts to "1" as this was the setting that worked on Mountain Lion previously but my login scripts aren't running yet. Does anyone have any ideas (or at least sanity check what I am doing so far?)


Forum|alt.badge.img+6
  • Author
  • Contributor
  • 108 replies
  • August 19, 2014

Or I just run the script as a policy at login. and another script as a policy at logout. Still trying to use old methods where Casper has an alternative :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings