Skip to content
Snippets Groups Projects
Commit ea0edb62 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

From Gerri:

This patch cleans up the AFS code and adds the possibility to instantiate
a token from any ROOT session.

There is a new class, TAFS, wrapper around a few C functions to create,
verify and destroy a token. This new code is available as a plugin library
libAFSAuth. In a ROOT session you can do

            root[] TAFS::Init()

to initialize a token in the default domain. You will be prompted for the
password. This creates an instance of TAFS and saves a pointer to it in
the global gAFS. Then

            root[] gAFS->Verify()

shows the seconds left to token expiration.
The C function are in AFSAuth.cxx; AFSAuth.o is linked to rpdutils.o so
that the same code is used there.
In PROOF, pmain.cxx loads libAFSAuth using the plugin manager when it
is told that AFS credentials are available (in the form of a file in the
sandbox).


git-svn-id: http://root.cern.ch/svn/root/trunk@17472 27541ba8-7e3a-0410-8455-c3a389f83636
parent 910e6e86
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment