Do the binding on the first boot instead, as pteeter suggests.
Have a look at Brian Hanson’s AD AutoBind solution: [url]http://forums.bombich.com/viewtopic.php?t=12126[/url]
One of the tricky things about AD binding using launchd, is making your script wait for Network/DNS before running. That problem is solved in a pretty neat way by Brian.
Using the following code in your launch daemon (plist)…
[code]KeepAlive
SuccessfulExit
[/code]
You can make your script exit 1, until your DNS is reachable (i.e. /usr/sbin/scutil -r DOMAIN), and launchd will restart the script until exit 0 🙂
Comments are closed