xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdOucGMap Class Reference

#include <XrdOucGMap.hh>

Collaboration diagram for XrdOucGMap:
Collaboration graph
[legend]

Public Member Functions

virtual int dn2user (const char *dn, char *user, int ulen, time_t now=0)
 
 XrdOucGMap (XrdOucGMapArgs)
 
virtual ~XrdOucGMap ()
 Destructor. More...
 
bool isValid () const
 Validity checker. More...
 

Private Member Functions

int load (const char *mf, bool force=0)
 Internal methods. More...
 

Private Attributes

bool valid
 Internal members. More...
 
XrdOucHash< XrdSecGMapEntry_tmappings
 
XrdOucString mf_name
 
time_t mf_mtime
 
time_t notafter
 
long timeout
 
XrdSysErrorelogger
 
XrdOucTracetracer
 
bool dbg
 
XrdSysXSLock xsl
 

Constructor & Destructor Documentation

XrdOucGMap::XrdOucGMap ( XrdOucGMapArgs  )
virtual XrdOucGMap::~XrdOucGMap ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual int XrdOucGMap::dn2user ( const char *  dn,
char *  user,
int  ulen,
time_t  now = 0 
)
virtual

Map a distinguished name (dn) to a user name.

Parameters
dn-> Distinguished name.
user-> Buffer where the user name is to be placed. It must end with a null byte.
ulen-> The length of the 'user' buffer.
now-> Current time (result of time(0)) or 0 if not available.
Returns
Success: Zero. Failure: An errno number describing the failure; typically -EFAULT - No valid matching found. -errno - If problems reloading the file
bool XrdOucGMap::isValid ( ) const
inline

Validity checker.

References valid.

int XrdOucGMap::load ( const char *  mf,
bool  force = 0 
)
private

Internal methods.

Member Data Documentation

bool XrdOucGMap::dbg
private
XrdSysError* XrdOucGMap::elogger
private
XrdOucHash<XrdSecGMapEntry_t> XrdOucGMap::mappings
private
time_t XrdOucGMap::mf_mtime
private
XrdOucString XrdOucGMap::mf_name
private
time_t XrdOucGMap::notafter
private
long XrdOucGMap::timeout
private
XrdOucTrace* XrdOucGMap::tracer
private
bool XrdOucGMap::valid
private

Internal members.

Referenced by isValid().

XrdSysXSLock XrdOucGMap::xsl
private

The documentation for this class was generated from the following file: