|Jul 27, 2013, 06:27 AM||#1|
Launchd and auto-enroll certificate script not working
Hi All !
First time here and already in trouble... so here's the deal :
- Mac OS X 10.8.4
- SCCM 2012
- XServe 10.7 + DeployStudio 1.6.2
I deploy my iMacs using DeployStudio. As a part of the deployment process, the Macs are binded to AD & OD. I need also to install the Microsoft SCCM 2012 client. In order for the iMacs to properly communicate with SCCM and being furtherly managed, I need them to enroll a certificate at first boot. My colleague and myself tried a couple of different methods, no luck yet.
So what we currently have in mind is to copy a plist in the LaunchDemons folder and the enroll script in another location to be run by launchd. Problem is : doesn't work... and no logs whatsoever !
Here's the plist :
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.sccm.enrollcert</string> <key>ProgramArguments</key> <array> <string>/usr/bin/enroll</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>
And here's the enroll.sh script :
#!/usr/bin/expect spawn /usr/bin/CMEnroll -s SCCM.DOMAIN.local -ignorecertchainvalidation -u "DOMAIN\ACCOUNT" expect "Please enter your password." send "passwd\n" sleep 50
Is there something we're missing by using "expect"/"spawn" in a launchd script like that ?
Thanks in advance
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Can you write a script to auto delete text messages?||bobfitz14||iOS 7||6||Mar 23, 2014 04:26 PM|
|Auto-login Multiple users who then launch a script||RobQuads||Mac OS X Server, Xserve, and Networking||6||Oct 9, 2013 07:11 PM|
|Apple Script / launchd way to keep WiFi on?||jagak||Mac Programming||2||Aug 8, 2013 08:50 PM|
|Script to auto quit hung app||UFGrayMatter||Mac Basics and Help||6||Nov 3, 2012 12:09 PM|
|Shell Script To Check if Microsoft Office Auto update available||sonuw||OS X||3||Aug 18, 2012 11:38 AM|
All times are GMT -5. The time now is 01:33 AM.