Skip to content

Commit

Permalink
SSS: add possiblity to inject an endorsement string into an SSS SecEn…
Browse files Browse the repository at this point in the history
…tity object
  • Loading branch information
apeters1971 committed May 24, 2018
1 parent a497919 commit f2e3c7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/XrdSecsss/XrdSecsssID.cc
Expand Up @@ -46,6 +46,7 @@
/******************************************************************************/

#define XRDSECSSSID "XrdSecsssID"
#define XRDSECSSSENDO "XrdSecsssENDORSEMENT"

XrdSysMutex XrdSecsssID::InitMutex;

Expand Down Expand Up @@ -204,6 +205,9 @@ XrdSecsssID::sssID *XrdSecsssID::genID(int Secure)
myID.grps = (Secure || XrdOucUtils::GroupName(getegid(), gBuff, pgSz) == 0)
? (char *)"nogroup" : gBuff;

if (getenv(XRDSECSSSENDO))
{myID.endorsements = getenv(XRDSECSSSENDO); }

// Just return the sssID
//
return genID(&myID);
Expand Down

0 comments on commit f2e3c7e

Please sign in to comment.