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

lcmaps_return_poolindex_without_gsi.h File Reference

This interface of LCMAPS takes user DN+FQANS and a counter as input and returns the uid, gids and poolindex, i.e. leaseid. More...

Go to the source code of this file.

Data Structures

struct  lcmaps_account_info_s
 structure that contains the local account information gathered by LCMAPS More...


Functions

int lcmaps_account_info_init (lcmaps_account_info_t *plcmaps_account)
 Initialize the account info structure.

int lcmaps_account_info_fill (uid_t *puid, gid_t **ppgid_list, int *pnpgid, gid_t **psgid_list, int *pnsgid, char **ppoolindex, lcmaps_account_info_t *plcmaps_account)
 Fill structure with account info.

int lcmaps_account_info_clean (lcmaps_account_info_t *plcmaps_account)
 Clean the account info structure.

int lcmaps_return_poolindex_without_gsi (char *user_dn, char **fqan_list, int nfqan, lcmaps_account_info_t *plcmaps_account)
 LCMAPS returns the poolindex and account information If LCMAPS is invoked via this interface it will return the user account info and poolindex, alternatively named leaseid, to the calling application.


Detailed Description

This interface of LCMAPS takes user DN+FQANS and a counter 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_without_gsi_va Returns the poolindex based on a variable argument list
  2. lcmaps_return_poolindex_without_gsi Returns the poolindex based on fixed arguments: security context, 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 list of the lcmaps policies (in the ("acquisition_policy") policy file) that should be evaluated until a policy succeeds. The policies are separated by ':', e.g. "das_voms:default:".

LCMAPS_LOG_STRING A string that will be prepended to all ("poolindex :") LCMAPS logging messages. If this variable is not set a default will be taken which includes a timestamp

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_without_gsi.h.


Function Documentation

lcmaps_account_info_clean lcmaps_account_info_t plcmaps_account  ) 
 

Clean the account info structure.

Parameters:
plcmaps_account pointer to the account info struct to be filled
Return values:
0 success.
1 failed to clean the account info structure

Definition at line 367 of file lcmaps_return_poolindex_without_gsi.c.

References lcmaps_account_info_s::pgid_list, lcmaps_account_info_s::poolindex, and lcmaps_account_info_s::sgid_list.

lcmaps_account_info_fill uid_t *  puid,
gid_t **  ppgid_list,
int *  pnpgid,
gid_t **  psgid_list,
int *  pnsgid,
char **  ppoolindex,
lcmaps_account_info_t plcmaps_account
 

Fill structure with account info.

Parameters:
puid ptr to the uid of the local account
ppgid_list ptr to the list of primary gids
pnpgid ptr to the number of primary gids found
psgid_list ptr to the list of secondary gids
pnsgid ptr to the number of secondary gids found
ppoolindex ptr to the pool index
plcmaps_account pointer to the account info struct to be filled
Return values:
0 success.
1 failed to fill the account info structure
-1 other failure

Definition at line 289 of file lcmaps_return_poolindex_without_gsi.c.

References lcmaps_account_info_s::npgid, lcmaps_account_info_s::nsgid, lcmaps_account_info_s::pgid_list, lcmaps_account_info_s::poolindex, lcmaps_account_info_s::sgid_list, and lcmaps_account_info_s::uid.

lcmaps_account_info_init lcmaps_account_info_t plcmaps_account  ) 
 

Initialize the account info structure.

Parameters:
plcmaps_account pointer to the account info struct to be filled
Return values:
0 success.
1 failed to clean the account info structure

Definition at line 253 of file lcmaps_return_poolindex_without_gsi.c.

References lcmaps_account_info_s::npgid, lcmaps_account_info_s::nsgid, lcmaps_account_info_s::pgid_list, lcmaps_account_info_s::poolindex, lcmaps_account_info_s::sgid_list, and lcmaps_account_info_s::uid.

lcmaps_return_poolindex_without_gsi char *  user_dn,
char **  fqan_list,
int  nfqan,
lcmaps_account_info_t plcmaps_account
 

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

Parameters:
user_dn The DN of the user (input)
fqan_list The list of FQANs (type char**) (input)
nfqan The number of FQANs in the list (input)
plcmaps_account A structure that contains account information: (output) uid, gids (primary and secondary) and the poolindex Please use lcmaps_account_info_clean() to clean this structure after use.
Return values:
0 success.
1 failure.

Definition at line 634 of file lcmaps_return_poolindex_without_gsi.c.


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