You can just spit it to stdin of ktutil

echo -e "add_entry -password -p alice@BLEEP.COM -k 1 -e aes128-cts-hmac-sha1-96\ntest\nwkt test_srv"  | ktutil

or if you don't want to keep passwords in shell history, put commands to the file and then

cat command_file | ktutil

where command file is
---
add_entry -password -p alice@BLEEP.COM -k 1 -e aes128-cts-hmac-sha1-96
test
wkt test_srv
---

Tim

On 2015-03-27 13:21, Ansar Mohammed wrote:
Hello All,
I need to automate the joining of Linux Workstations into Active Directory. I am using the MIT Kerberos implementation. The version of ktutil that ships with the MIT package requires user input (an interactive utility)

I would like to use a bash script to call ktutil, any suggestions on how to do this?





---
Talk Mailing List
talk@gtalug.org
http://gtalug.org/mailman/listinfo/talk