[OpenAFS] Automatically Renewing Tokens?

Stephan Wiesand stephan.wiesand@desy.de
Wed, 25 May 2011 21:15:22 +0200


On May 25, 2011, at 21:02 , Dave Botsch wrote:

> See inline below...
>=20
>>=20
>> 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...
>=20
> 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 =3D my_creds.times.endtime;


Did I mention that it's a crude, ugly hack?

--=20
Stephan Wiesand
DESY -DV-
Platanenenallee 6
15738 Zeuthen, Germany