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

lcmaps_return_poolindex_without_gsi.c File Reference

This interface returns the uid, gids and poolindex, i.e. leaseid, using LCMAPS. More...

#include "lcmaps_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <syslog.h>
#include <errno.h>
#include <time.h>
#include "lcmaps.h"
#include "lcmaps_return_poolindex_without_gsi.h"

Go to the source code of this file.

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 returns the uid, gids and poolindex, i.e. leaseid, using LCMAPS.

Author:
Martijn Steenbakkers for the EU DataGrid.
This interface returns the uid, gids and poolindex, i.e. leaseid, using LCMAPS. As input it requires the DN and FQANs asserted to the user
  1. lcmaps_return_poolindex_without_gsi: interface function

Definition in file lcmaps_return_poolindex_without_gsi.c.


Function Documentation

int 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.

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.

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.

int 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.

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.

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