[GTALUG] Scripting with Interactive Utilities
Tim Sattarov
stimur at gmail.com
Fri Mar 27 19:37:03 UTC 2015
You can just spit it to stdin of ktutil
echo -e "add_entry -password -p alice at 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 at 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 at gtalug.org
> http://gtalug.org/mailman/listinfo/talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20150327/3002cd19/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3677 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://gtalug.org/pipermail/talk/attachments/20150327/3002cd19/attachment.bin>
More information about the talk
mailing list