![]() |
XRootD
|
#include <XrdSecsssID.hh>
Public Types | |
enum | authType { idDynamic = 0 , idMapped = 3 , idMappedM = 4 , idStatic = 1 , idStaticM = 2 } |
Public Member Functions | |
XrdSecsssID (authType aType=idStatic, const XrdSecEntity *Ident=0, XrdSecsssCon *Tracker=0, bool *isOK=0) | |
bool | Register (const char *lgnid, const XrdSecEntity *Ident, bool doReplace=false, bool defer=false) |
Friends | |
class | XrdSecProtocolsss |
Definition at line 53 of file XrdSecsssID.hh.
Create a single instance of this class. Once created it cannot be deleted.
aType | - The type of authentication to perform (see authType enum). |
Ident | - Pointer to the default entity to use. If nil, a generic entity is created based on the process uid and gid. |
Tracker- | pointer to the connection tracker objec if connection tracking is desired. If nil, connections are not tracked. |
isOK | - if not nil sets the variable to true if successful and false, otherwise. Strongly recommended it be supplied. |
Enumerator | |
---|---|
idDynamic | Mutual: Map loginid to registered identity Ident is default; if 0 nobody/nogroup |
idMapped | 1Sided: Map loginid to registered identity Ident is default; if 0 nobody/nogroup |
idMappedM | Mutual: Map loginid to registered identity Ident is default; if 0 process uid/gid |
idStatic | 1Sided: fixed identity sent to the server Ident as specified; if 0 process uid/gid Default if XrdSecsssID not instantiated! |
idStaticM | Mutual: fixed identity sent to the server Ident as specified; if 0 process uid/gid |
Definition at line 79 of file XrdSecsssID.hh.
XrdSecsssID::XrdSecsssID | ( | authType | aType = idStatic , |
const XrdSecEntity * | Ident = 0 , |
||
XrdSecsssCon * | Tracker = 0 , |
||
bool * | isOK = 0 |
||
) |
Definition at line 77 of file XrdSecsssID.cc.
References XrdSecsssMap::conTrack, idDynamic, idMapped, idMappedM, XrdSecsssMap::IDMapper, idStatic, idStaticM, XrdSysMutex::Lock(), XrdSecsssMap::sssMutex, and XrdSysMutex::UnLock().
bool XrdSecsssID::Register | ( | const char * | lgnid, |
const XrdSecEntity * | Ident, | ||
bool | doReplace = false , |
||
bool | defer = false |
||
) |
Create or delete a mapping from a loginid to an entity description.
lgnid | - Pointer to the login ID. |
Ident | - Pointer to the entity object to be registstered. If the pointer is NIL, then the mapping is deleted. |
doReplace | - When true, any existing mapping is replaced. |
defer | - When true, the entity object is recorded but serialization is deferred until the object is needed. The entity object must remain valid until the mapping is deleted. The entity may not be modified during this period. |
Definition at line 224 of file XrdSecsssID.cc.
References XrdSecsssEnt::Delete(), XrdSysMutex::Lock(), XrdSecsssMap::Registry, XrdSecsssMap::sssMutex, and XrdSysMutex::UnLock().
Referenced by XrdPssSys::Connect(), XrdPssSys::Disc(), and XrdFfsMisc_xrd_secsss_register().
|
friend |
Definition at line 56 of file XrdSecsssID.hh.