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

lcmaps_return_poolindex.h File Reference

This interface of LCMAPS takes the user gsi credential as input and returns the uid, gids and poolindex, i.e. leaseid. More...

#include <gssapi.h>

Go to the source code of this file.

Functions

int lcmaps_return_poolindex (gss_ctx_id_t context_handle, char *poolindex_buffer, unsigned int buffer_length)
 LCMAPS returns the poolindex If LCMAPS is invoked via this interface it will return the poolindex, alternatively named leaseid, to the calling application.

int lcmaps_return_poolindex_from_gss_cred (gss_cred_id_t credential_handle, char *poolindex_buffer, unsigned int buffer_length)
 LCMAPS returns the poolindex If LCMAPS is invoked via this interface it will return the poolindex, alternatively named leaseid, to the calling application. Instead of using the security context as an input it uses a gss credential (type gss_cred_id_t).


Detailed Description

This interface of LCMAPS takes the user gsi credential as input and returns the uid, gids and poolindex, i.e. leaseid.

Author:
Martijn Steenbakkers for EGEE.
This header contains the following LCMAPS library functions:
  1. lcmaps_return_poolindex_va Returns the poolindex based on a variable argument list
  2. lcmaps_return_poolindex Returns the poolindex based on fixed arguments: security context, buffer and buffer length
  3. lcmaps_return_poolindex_from_gss_cred Returns the poolindex based on fixed arguments: gss credential, buffer and buffer length

In general the behaviour of LCMAPS can be influenced by setting the following environment variables: Env variable Description (default value) --------------- ----------- LCMAPS_LOG_FILE The logfile to which lcmaps log ("/var/log/lcmaps.log") messages will be written

LCMAPS_DB_FILE the location (name) of the lcmaps policy file (LCMAPS_ETC_DIR"/lcmaps.db")

LCMAPS_POLICY_NAME the name of the lcmaps policy (in the ("acquisition_policy") policy file) that should be evaluated

LCMAPS_LOG_STRING A string that will be prepended to all ("poolindex :") LCMAPS logging messages.

LCMAPS_DEBUG_LEVEL The debug level influences the logging ("0") verbosity. values 0-5.

LCMAPS_MODULES_DIR The directory in which modules can be found. ("") Note: may be overwritten by what is in the policy file (the convential method)

LCMAPS_ETC_DIR The directory of the lcmaps policy files ("/opt/glite/etc/lcmaps") and other config files.

GRIDMAPDIR The directory in which the poolaccount leases ("") are registered. Note: may be overwritten by what is in the policy file (the convential method)

Definition in file lcmaps_return_poolindex.h.


Function Documentation

lcmaps_return_poolindex gss_ctx_id_t  context_handle,
char *  poolindex_buffer,
unsigned int  buffer_length
 

LCMAPS returns the poolindex If LCMAPS is invoked via this interface it will return the poolindex, alternatively named leaseid, to the calling application.

Parameters:
context_handle The GSS Security context established during invocation of the calling service.
poolindex_buffer A pointer to a buffer. This buffer will contain the poolindex (NUL terminated string) upon successful return.
buffer_length The length of the above mentioned buffer.
Return values:
0 success.
1 failure.

Definition at line 673 of file lcmaps_return_poolindex.c.

lcmaps_return_poolindex_from_gss_cred gss_cred_id_t  credential_handle,
char *  poolindex_buffer,
unsigned int  buffer_length
 

LCMAPS returns the poolindex If LCMAPS is invoked via this interface it will return the poolindex, alternatively named leaseid, to the calling application. Instead of using the security context as an input it uses a gss credential (type gss_cred_id_t).

Parameters:
credential_handle The GSS credential (of type gss_cred_id_t) of the user.
poolindex_buffer A pointer to a buffer. This buffer will contain the poolindex (NUL terminated string) upon successful return.
buffer_length The length of the above mentioned buffer.
Return values:
0 success.
1 failure.

Definition at line 728 of file lcmaps_return_poolindex.c.


Generated on Sun May 29 21:22:12 2005 for lcmaps by doxygen 1.3.5