<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
You can just spit it to stdin of ktutil<br>
<br>
echo -e "add_entry -password -p <a class="moz-txt-link-abbreviated" href="mailto:alice@BLEEP.COM">alice@BLEEP.COM</a> -k 1 -e
aes128-cts-hmac-sha1-96\ntest\nwkt test_srv" | ktutil<br>
<br>
or if you don't want to keep passwords in shell history, put
commands to the file and then<br>
<br>
cat command_file | ktutil<br>
<br>
where command file is <br>
---<br>
add_entry -password -p <a class="moz-txt-link-abbreviated" href="mailto:alice@BLEEP.COM">alice@BLEEP.COM</a> -k 1 -e
aes128-cts-hmac-sha1-96<br>
test<br>
wkt test_srv<br>
---<br>
<br>
Tim<br>
<br>
<div class="moz-cite-prefix">On 2015-03-27 13:21, Ansar Mohammed
wrote:<br>
</div>
<blockquote
cite="mid:CAOO1MfsVPci55igKR6hSVDKBKfjx7zWYi2zniRJbNaJmfp5gWA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hello All,</div>
<div>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)</div>
<div><br>
</div>
<div>I would like to use a bash script to call ktutil, any
suggestions on how to do this?</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">---
Talk Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:talk@gtalug.org">talk@gtalug.org</a>
<a class="moz-txt-link-freetext" href="http://gtalug.org/mailman/listinfo/talk">http://gtalug.org/mailman/listinfo/talk</a>
</pre>
</blockquote>
<br>
</body>
</html>