Need to automatiate adding new principal to kerberos by bash-script. It should get two args: name, password. That's all.
But i can't find such solution. Found this: https://docs.oracle.com/cd/E36784_01/html/E37126/aadmin-192.html
awk '{ print "ank +needchange -pw", $2, $1 }' < /tmp/princnames |
time /usr/sbin/kadmin.local> /dev/null
It works to hard for me: 1. i need no multi-creating principal 2. i need no file-input, just stdin 3. i don't understand how this code works. Not exactly.
Is there anything more simple and flexible (such as change input method)?
Comments
Post a Comment