Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

lcmaps_jobrep.c File Reference

Plugin to get data for the Job Repository Database. More...

#include "lcmaps_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <pwd.h>
#include <openssl/x509.h>
#include <openssl/asn1.h>
#include "gssapi.h"
#include "lcmaps_modules.h"
#include "lcmaps_arguments.h"
#include "lcmaps_cred_data.h"
#include "lcmaps_voms_utils.h"
#include "lcmaps_vo_data.h"
#include "voms_apic.h"
#include "globus_gss_assist.h"
#include "jobrep_api.h"

Include dependency graph for lcmaps_jobrep.c:

Include dependency graph

Go to the source code of this file.

Functions

int lcmaps_get_jobrep_config (const char *, char **)
 Get the Job Repository configuration from file. More...

int plugin_initialize (int argc, char **argv)
 initialize the plugin. More...

int plugin_introspect (int *argc, lcmaps_argument_t **argv)
 Plugin asks for required arguments. More...

int plugin_run (int argc, lcmaps_argument_t *argv)
 Gather credentials for user making use of the ordered arguments. More...

int plugin_terminate ()
 Whatever is needed to terminate the plugin module goes in here. More...


Detailed Description

Plugin to get data for the Job Repository Database.

Author:
Oscar Koeroo for the EU DataGrid.

Definition in file lcmaps_jobrep.c.


Function Documentation

int lcmaps_get_jobrep_config ( const char * path,
char ** jobrep_config ) [static]
 

Get the Job Repository configuration from file.

This function tries to read the Job Repository configuration from the jobrep_config file. It also tests if the access bits of the file are correctly set.

Parameters:
path   the path to the jobrep_config file containing the config string.
jobrep_config   variable to set the configuration string in
Return values:
0   success
1   other failure

Definition at line 2170 of file lcmaps_jobrep.c.

Referenced by plugin_initialize().

int plugin_initialize ( int argc,
char ** argv )
 

initialize the plugin.

plugin_initialize(int argc, char **argv)

Everything that is needed to initialize the plugin should be put inside this function. Arguments as read from the LCMAPS database (argc, argv) are passed to the plugin.

Parameters:
argc   number of passed arguments.
argv   argument list. argv[0] contains the name of the plugin.
Return values:
LCMAPS_MOD_SUCCESS   successful initialization
LCMAPS_MOD_FAIL   failure in the plugin initialization
LCMAPS_MOD_NOFILE   private plugin database could not be found (same effect as LCMAPS_MOD_FAIL)

Definition at line 418 of file lcmaps_jobrep.c.

int plugin_introspect ( int * argc,
lcmaps_argument_t ** argv )
 

Plugin asks for required arguments.

plugin_introspect(int *argc, lcmaps_argument_t **argv)

Parameters:
int   *argc
lcmaps_argument_t   **argv
Return values:
LCMAPS_MOD_SUCCESS   success
LCMAPS_MOD_FAIL   failure (will result in a lcmaps failure)

Definition at line 529 of file lcmaps_jobrep.c.

int plugin_run ( int argc,
lcmaps_argument_t * argv )
 

Gather credentials for user making use of the ordered arguments.

plugin_run(int argc, lcmaps_argument_t *argv)

Ask for credentials by passing the arguments (like JDL, globus DN, VOMS roles etc.) that were ordered earlier by the plugin_introspect() function

Parameters:
argc   number of arguments
argv   list of arguments
Return values:
LCMAPS_MOD_SUCCESS   authorization succeeded
LCMAPS_MOD_FAIL   authorization failed

Definition at line 565 of file lcmaps_jobrep.c.

int plugin_terminate ( )
 

Whatever is needed to terminate the plugin module goes in here.

plugin_terminate()

Return values:
LCMAPS_MOD_SUCCESS   success
LCMAPS_MOD_FAIL   failure (will result in an authorization failure)

Definition at line 1925 of file lcmaps_jobrep.c.


Generated at Thu Mar 4 17:39:20 2004 for edg-lcmaps by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001