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

lcmaps.h

Go to the documentation of this file.
00001 /*                                                                                                            
00002  * Copyright (c) 2001 EU DataGrid.                                                                             
00003  * For license conditions see http://www.eu-datagrid.org/license.html                                          
00004  *
00005  * Copyright (c) 2001, 2002 by 
00006  *     Martijn Steenbakkers <martijn@nikhef.nl>,
00007  *     David Groep <davidg@nikhef.nl>,
00008  *     NIKHEF Amsterdam, the Netherlands
00009  */
00010 
00028 #ifndef LCMAPS_H
00029 #define LCMAPS_H
00030 
00031 /******************************************************************************
00032                              Include header files
00033 ******************************************************************************/
00034 #include <gssapi.h>
00035 #include "lcmaps_types.h"
00036 
00037 /******************************************************************************
00038  *                 Module definition
00039  *****************************************************************************/
00040 
00041 /******************************************************************************
00042 Function:   lcmaps_init
00043 Description:
00044     Initialize LCMAPS module: 
00045     setup logging, error handling
00046     start PluginManager
00047 
00048 Parameters:
00049     fp: file handle for logging (from gatekeeper)
00050 Returns:
00051     0: initialization succeeded
00052     1: initialization failed
00053 ******************************************************************************/
00054 extern int lcmaps_init(
00055         FILE* fp
00056 );
00057 
00058 /******************************************************************************
00059 Function:   lcmaps_term
00060 Description:
00061     Terminate LCMAPS module: 
00062 
00063 Parameters:
00064 Returns:
00065     0: termination succeeded
00066     1: termination failed
00067 ******************************************************************************/
00068 extern int lcmaps_term();
00069 
00070 /******************************************************************************
00071 Function:   lcmaps_run
00072 Description:
00073     do the user mapping
00074 
00075 Parameters:
00076     request: JDL
00077     user_cred : user globus credential handle
00078 Returns:
00079     0: authorization succeeded
00080     1: authorization failed
00081 ******************************************************************************/
00082 #if ALLOW_EMPTY_CREDENTIALS
00083 extern int lcmaps_run(
00084         char * user_dn_tmp,
00085         gss_cred_id_t user_cred,
00086         lcmaps_request_t request
00087 );
00088 #else
00089 extern int lcmaps_run(
00090         gss_cred_id_t user_cred,
00091         lcmaps_request_t request
00092 );
00093 #endif
00094 
00095 /******************************************************************************
00096 Function:   lcmaps_run_without_credentials
00097 Description:
00098     do the user mapping without credentials, only the user DN
00099 
00100 Parameters:
00101     user_dn_tmp: user DN
00102 Returns:
00103     0: mapping succeeded
00104     1: mapping failed
00105 ******************************************************************************/
00106 extern int lcmaps_run_without_credentials(
00107         char * user_dn_tmp
00108 );
00109 #endif /* LCMAPS_H */
00110 
00111 /******************************************************************************
00112 CVS Information:
00113     $Source: /cvs/fabric_mgt/gridification/lcmaps/include/lcmaps.h,v $
00114     $Date: 2003/07/10 16:33:22 $
00115     $Revision: 1.5 $
00116     $Author: martijn $
00117 ******************************************************************************/

Generated at Fri Jul 11 18:37:43 2003 for edg-lcmaps by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001