Ok. I'm a Mac IT/Admin at a university. I have about 150 lab machines running OS 10.3.x that are bound to a Windows Active Directory server.
1. A good many of these machines are becoming "unbound" from the server and as a result students are unable to authenticate against Active Directory (AD). I then have to login, launch Directory Access, remove the AD authentication node in the Authentication tab. Then I have to the services tag, open the Active Directory configuration, unbind the machine. Click Ok. Then disable the Active Directory service, Apply the changes and restart.
2. After the restart I have to open Directory Access, open the Active Directory configuration, rebind the computer, click Apply. Then I have to go to the Authentication tag, add the resulting AD authentication node back and click apply.
Log out and everything is fine for further authentication.
The machine loose this binding quite frequently so I do this probably 5-10 times a day.
What I want is help making a shutdown item that will do item 1 and a startup item that will do item 2.
I know how to use the terminal to add a computer via the dsconfigad command, but I can't figure out how to clear out the authentication node and disable the Active Directory service and apply it all.
That and add in the fact that I have never created a startup or shutdown item for OS X.
Any help would be appreciated.
1. A good many of these machines are becoming "unbound" from the server and as a result students are unable to authenticate against Active Directory (AD). I then have to login, launch Directory Access, remove the AD authentication node in the Authentication tab. Then I have to the services tag, open the Active Directory configuration, unbind the machine. Click Ok. Then disable the Active Directory service, Apply the changes and restart.
2. After the restart I have to open Directory Access, open the Active Directory configuration, rebind the computer, click Apply. Then I have to go to the Authentication tag, add the resulting AD authentication node back and click apply.
Log out and everything is fine for further authentication.
The machine loose this binding quite frequently so I do this probably 5-10 times a day.
What I want is help making a shutdown item that will do item 1 and a startup item that will do item 2.
I know how to use the terminal to add a computer via the dsconfigad command, but I can't figure out how to clear out the authentication node and disable the Active Directory service and apply it all.
That and add in the fact that I have never created a startup or shutdown item for OS X.
Any help would be appreciated.