![]() |
XRootD
|
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include "XrdVersion.hh"
#include "XrdOuc/XrdOucHash.hh"
#include "XrdOuc/XrdOucString.hh"
#include "XrdOuc/XrdOucTrace.hh"
#include "XrdSys/XrdSysError.hh"
#include "XrdSys/XrdSysLogger.hh"
Go to the source code of this file.
Classes | |
class | XrdSecgsiMapEntry_t |
Macros | |
#define | DEBUG(y) if (dnTrace && (dnTrace->What & TRACE_Authen)) PRINT(y) |
#define | EPNAME(x) static const char *epname = x; |
#define | PRINT(y) {if (dnTrace) {dnTrace->Beg(epname); std::cerr <<y; dnTrace->End();}} |
#define | TRACE_Authen 0x0002 |
Enumerations | |
enum | XrdSecgsi_Match { kFull = 0 , kBegins = 1 , kEnds = 2 , kContains = 4 } |
Functions | |
static int | FindMatchingCondition (const char *, XrdSecgsiMapEntry_t *mc, void *xmp) |
char * | XrdSecgsiGMAPFun (const char *dn, int now) |
int | XrdSecgsiGMAPInit (const char *cfg) |
XrdVERSIONINFO (XrdSecgsiGMAPFun, secgsigmap) | |
Variables | |
static XrdSysError | dnDest (0, "gmapdn_") |
static XrdSysLogger | dnLogger |
static XrdOucTrace * | dnTrace = 0 |
static XrdOucHash< XrdSecgsiMapEntry_t > | gMappings |
#define DEBUG | ( | y | ) | if (dnTrace && (dnTrace->What & TRACE_Authen)) PRINT(y) |
Definition at line 55 of file XrdSecgsiGMAPFunDN.cc.
#define EPNAME | ( | x | ) | static const char *epname = x; |
Definition at line 53 of file XrdSecgsiGMAPFunDN.cc.
Definition at line 54 of file XrdSecgsiGMAPFunDN.cc.
#define TRACE_Authen 0x0002 |
Definition at line 52 of file XrdSecgsiGMAPFunDN.cc.
enum XrdSecgsi_Match |
|
static |
Definition at line 91 of file XrdSecgsiGMAPFunDN.cc.
References XrdOucString::beginswith(), XrdOucString::c_str(), XrdOucString::endswith(), XrdOucString::find(), kBegins, kContains, kEnds, XrdOucString::matches(), STR_NPOS, XrdSecgsiMapEntry_t::type, XrdSecgsiMapEntry_t::user, and XrdSecgsiMapEntry_t::val.
Referenced by XrdSecgsiGMAPFun().
char* XrdSecgsiGMAPFun | ( | const char * | dn, |
int | now | ||
) |
Definition at line 123 of file XrdSecgsiGMAPFunDN.cc.
References XrdOucString::c_str(), DEBUG, EPNAME, FindMatchingCondition(), gMappings, kFull, XrdOucString::length(), XrdSecgsiMapEntry_t::val, and XrdSecgsiGMAPInit().
int XrdSecgsiGMAPInit | ( | const char * | cfg | ) |
Definition at line 167 of file XrdSecgsiGMAPFunDN.cc.
References XrdOucString::c_str(), DEBUG, dnDest, dnLogger, dnTrace, EPNAME, fclose(), fopen, gMappings, kBegins, kContains, kEnds, kFull, XrdOucString::length(), XrdSysError::logger(), PRINT, TRACE_Authen, and XrdOucTrace::What.
Referenced by XrdSecgsiGMAPFun().
XrdVERSIONINFO | ( | XrdSecgsiGMAPFun | , |
secgsigmap | |||
) |
|
static |
Referenced by XrdSecgsiGMAPInit().
|
static |
Definition at line 49 of file XrdSecgsiGMAPFunDN.cc.
Referenced by XrdSecgsiGMAPInit().
|
static |
Definition at line 50 of file XrdSecgsiGMAPFunDN.cc.
Referenced by XrdSecgsiGMAPInit().
|
static |
Definition at line 84 of file XrdSecgsiGMAPFunDN.cc.
Referenced by XrdSecgsiGMAPFun(), and XrdSecgsiGMAPInit().