35 #define VOMS_MAP_FAILED ((XrdVomsMapfile *)-1)
54 void SetErrorStream(
XrdSysError *erp) {
if (erp) {m_edest = erp;}}
67 std::vector<std::string> m_path;
71 bool ParseMapfile(
const std::string &mapfile);
72 bool ParseLine(
const std::string &line, std::vector<std::string> &entry, std::string &target);
74 std::string Map(
const std::vector<std::string> &fqan);
75 bool Compare(
const MapfileEntry &entry,
const std::vector<std::string> &fqan);
76 std::vector<std::string> MakePath(
const XrdOucString &group);
79 static void *MaintenanceThread(
void *myself_raw);
82 bool m_is_valid =
false;
84 struct timespec m_mapfile_ctime{0, 0};
86 std::string m_mapfile;
87 std::shared_ptr<const std::vector<MapfileEntry>> m_entries;
91 static constexpr
unsigned m_update_interval = 30;
94 static std::unique_ptr<XrdVomsMapfile> mapper;
98 static bool tried_configure;
static XrdVomsMapfile * Get()
static XrdVomsMapfile * Configure(XrdSysError *)
virtual ~XrdVomsMapfile()
int Apply(XrdSecEntity &)