This is an example of authplugin program provided by Leif Nixon <nixon@nsc.liu.se>.

It consists of two files: a small C program that parses an xRSL file
and prints the names of the runtimeenvironments to stdout, and an
authplugin in the form of a small shell script that only allows a job
to proceed if it asks for the RE "TESTSYSTEM".

Compilation:

  Compile using Globus installation in /opt/globus

  gcc -o get_re get_re.c  -I/opt/globus/include/gcc32dbgpthr -L/opt/globus/lib -lglobus_rsl_gcc32dbgpthr

Installation:

  Copy get_re and testsystem_acl.sh to /opt/nordugrid/libexec:

  cp -p get_re testsystem_acl.sh /opt/nordugrid/libexec/

Usage:

  To use it, put something like this in arc.conf:

  authplugin="ACCEPTED 10 /opt/nordugrid/libexec/testsystem_acl.sh %C %I"

