[OpenAFS] keepafstoken
Simeon Miteff
simeon@up.ac.za
Fri, 08 Jul 2005 15:00:20 +0200
This is a multi-part message in MIME format.
--------------000600030200040007000201
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Dear All
I've written a little C program that performs the same function as
reauth or keeptoken - it reads the users password and forks into the
background where it wakes up at regular intervals to refresh the user's
kerberos ticket and afs token.
I could not get reauth to work with my mit-krb5+openafs setup. I based
this little program on reauth.pl, it runs the kinit and aklog programs
directly, and does not link krb or afs libs.
I plan to use it at our site, and will write a little man page and maybe
turn it into a debian package too.
If you're interested, please take a look at it and give me feedback, if
not, sorry for the attachment :-/
Kind regards,
Simeon Miteff.
--------------000600030200040007000201
Content-Type: application/x-gzip;
name="keepafstoken.c.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="keepafstoken.c.gz"
H4sICOR2zkICA2tlZXBhZnN0b2tlbi5jAI1Za2/bRhb9LP6KqRaJKVeiZCdpF3ZsrGs7ibGJ
HcQO3EUSCCNyKHFFkSw5tKK22d++594ZPkQ5RYMmFTl37vtxZjjed5ZKZTIsdLpUyVA8qLyI
0kRMvIl34Jyn2SaP5gst3POBOJxMXojbaKWw/i7SKgzFy4If/1VmnvS93+Wp47wv8ywt1JFz
l4pcyUBs0jIXS5XPVJ4WIpNFsU7zQIR5uhJ6oYRW+SpKZDwUMgnoTSLyMhFRwqsz6S/neVom
wZBVjZK54QidBSstHmQcBUMRprmC+sJNc1EmOoqFUU6JlUxKGccbsYzi2D0YFMw5UHKVJgPP
cW61LHUBjRdRUXsgDUXbNWItC7HOI63xW6cCNizFOtILIZdxOjfmpJlKsGG0zGcvxIH3bHQA
L7JZyyiJNBM5tDgqC2gKCu+n0eFQrBeRD0a5YsX8Ms9VoqFvoeUsVvCZv5RzVQiotdqICzWT
8M6tzOcK2t8tVJpvSF+Iz6WG8kcOrBT3SsDq1JcaPxrHz8owVLnxNlaXAopFCUzKFpsi8mUs
VmoFjp7jHjITskqMA/U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