Home Forums Software InstaDMG dsconfigad

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #373784
    hetjan
    Participant

    Is it possible to bind an InstaDMG image to AD beforehand?

    #373797
    pteeter
    Participant

    Best to use a launchdaemon or loginhook to establish the AD bind.

    #373800
    thomasb
    Participant

    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 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed