[OpenAFS] Automatically Renewing Tokens?
Dave Botsch
botsch@cnf.cornell.edu
Wed, 25 May 2011 15:25:21 -0400
Not too different than what the afs plugin for krb5-auth-dialog seems to
do...
const char *afslog_cmds[] = { "aklog", "afslog" };
for (i = 0; i < G_N_ELEMENTS (afslog_cmds); i++) {
ret = g_spawn_command_line_async (afslog_cmds[i], &err);
if (!ret) {
On Wed, May 25, 2011 at 09:15:22PM +0200, Stephan Wiesand wrote:
>
> On May 25, 2011, at 21:02 , Dave Botsch wrote:
>
> > See inline below...
> >
> >>
> >> We applied a crude hack to the krb5-auth-dialog coming with EL6 (which has no plugin support yet) to make it run aklog. It's ugly, but it works...
> >
> > I'd be interested in seeing your hack.
>
> --- src/krb5-auth-dialog.c.orig 2010-11-18 16:34:25.148385380 +0100
> +++ src/krb5-auth-dialog.c 2010-11-18 16:36:40.923384559 +0100
> @@ -847,6 +847,8 @@
> ka_log_error_message("krb5_cc_store_cred", kcontext, retval);
> goto out;
> }
> +
> + system("/usr/bin/afs5log");
> }
> out:
> creds_expiry = my_creds.times.endtime;
>
>
> Did I mention that it's a crude, ugly hack?
>
> --
> Stephan Wiesand
> DESY -DV-
> Platanenenallee 6
> 15738 Zeuthen, Germany
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>
--
********************************
David William Botsch
Programmer/Analyst
CNF Computing
botsch@cnf.cornell.edu
********************************