I need to be able to generate a kerberos ticket for my MacBook Pro each time the machine restarts. I can manually run KINIT with my credentials to generate a ticket. What is the best way to automate that process?
|
You can easily package shell commands inside an Automator application (or service) using the “Run Shell Script” action. However, this will run the commands in a non-interactive shell (for an explanation of the difference between interactive and non-interactive shells, see the pertinent section of the Advanced Bash Scripting Guide – simply put, you will not have access to the terminal for the password prompt, and if
|
||||
|
|
Just wanna chime in; i didn't fancy putting my password into the keychain so i wrote a quick applescript to pick up from a user prompt:
of course, you probably wanna put the domain into your username too. and then, from a shell script you can do something like:
what would be nice would be to check the output form the shell script to check for incorrect passwords etc. |
|||
|
|
kinitrequire any manual input from your side? – patrix♦ May 7 '12 at 14:38--password-filebe an option for you? Otherwise it will be difficult to automate. – patrix♦ May 7 '12 at 15:14