Re: Is there a "batchable" way to do ktutil list

2021-05-03 Thread Robbie Harwood
James Ralston writes: > But still. Not being able to get machine-readable output out of klist > turns what should be simple and useful scripting tasks, such as "scan > the 9 different TGTs in my credential cache collection and renew any > that expire in less than 12 hours", into "whee, I guess I

Re: Is there a "batchable" way to do ktutil list

2021-05-02 Thread James Ralston
On Wed, Apr 21, 2021 at 6:42 AM Ken Hornstein wrote: > > Is there another command that is more script-friendly? If not, > > can someone share a good way to pass args to the MIT ktutil? > > I think "klist -k" does what you want. You can pass arguments to > ktutil in a script via stdin and parse

Re: Is there a "batchable" way to do ktutil list

2021-04-21 Thread Ken Hornstein
>Is there another command that is more script-friendly? If not, can >someone share a good way to pass args to the MIT ktutil? I think "klist -k" does what you want. You can pass arguments to ktutil in a script via stdin and parse the output (we do that via a script), that looks something like:

Re: Is there a "batchable" way to do ktutil list

2021-04-21 Thread Greg Hudson
On 4/21/21 3:56 AM, Dan Mahoney (Gushi) wrote:> Dayjob has a puppet fact that, under freeBSD, uses "ktutil list" to get > the kvno of a given host. [...] > Is there another command that is more script-friendly? If not, can > someone share a good way to pass args to the MIT ktutil? I think you wa

Re: Is there a "batchable" way to do ktutil list

2021-04-21 Thread Predrag Zecevic
On 21.04.2021 09:56, Dan Mahoney (Gushi) wrote: > All, > > Dayjob has a puppet fact that, under freeBSD, uses "ktutil list" to get > the kvno of a given host. This works great because the heimdal kerberos > that's built into freeBSD is what we like to parse. It takes a -k > argument to specify a

Re: Is there a "batchable" way to do ktutil list

2021-04-21 Thread Dameon Wagner
On Wed, Apr 21 2021 at 00:56:39 -0700, Dan Mahoney (Gushi) scribbled in "Is there a "batchable" way to do ktutil list": > All, > > Dayjob has a puppet fact that, under freeBSD, uses "ktutil list" to get > the kvno of a given host. This works great because the heimdal kerberos > that's built in