Print

Print


@bbockelm commented on this pull request.



> @@ -164,6 +165,7 @@ XrdHttpProtocol::HandleGridMap(XrdLink* lp)
       TRACEI(DEBUG, " Mapping name: '" << SecEntity.moninfo << "' --> " << bufname);
       if (SecEntity.name) free(SecEntity.name);
       SecEntity.name = strdup(bufname);
+      SecEntity.eaAPI->Add("gridmap.name", bufname, true);

It's not obvious!

It's a bit of a problem of order of precedence.  For the final value of `entity.name`, want the following order:
1.  Explicit entries in the grid mapfile.
2. Explicit entries in the VOMS mapfile
3. Whatever the default behavior is for the GSI plugin as a whole (e.g., potentially an auto-generated name).

Unfortunately, the naive solution results in an ordering of (1), (3), then (2).  Thus, we add any explicit usage of the grid mapfile to the entity so we can distinguish a positive entry from a default fallback.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/1572#discussion_r792324594
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1