XrdOucGMap Class Reference

#include <XrdOucGMap.hh>

Collaboration diagram for XrdOucGMap:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Member Functions

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

Private Attributes

bool valid
 Internal members.
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 (  )  [inline, virtual]

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]
time_t XrdOucGMap::mf_mtime [private]
time_t XrdOucGMap::notafter [private]
long XrdOucGMap::timeout [private]
bool XrdOucGMap::valid [private]

Internal members.

Referenced by isValid().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 7 Jul 2020 for xrootd by  doxygen 1.6.1