Skip to content

Commit 6ea6088

Browse files
authored
Merge pull request #11 from edquist/SOFTWARE-4564.scitokens
Add scitokens issuer mappings & users (SOFTWARE-4564)
2 parents 8e88af7 + e25223b commit 6ea6088

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
# FIXME: remove mkdir once htcondor-ce 5.1.0 is released
2+
mkdir -p /etc/condor-ce/mapfiles.d/
3+
14
# Return list of local users mapped from grid credentials
25
function get_mapped_users () {
3-
cat /etc/grid-security/grid-mapfile /etc/grid-security/voms-mapfile |
4-
awk '/^"[^"]+" +[a-zA-Z0-9\-\._]+$/ {print $NF}' |
5-
sort -u
6+
{
7+
awk '$1 == "SCITOKENS" { print $NF }' /etc/condor-ce/condor_mapfile \
8+
/etc/condor-ce/mapfiles.d/* 2>/dev/null
9+
cat /etc/grid-security/grid-mapfile /etc/grid-security/voms-mapfile |
10+
awk '/^"[^"]+" +[a-zA-Z0-9\-\._]+$/ {print $NF}'
11+
} | sort -u
612
}
13+

0 commit comments

Comments
 (0)