Skip to content

Commit 9a2cee3

Browse files
committed
include SCITOKENS lines in get_mapped_users (SOFTWARE-4564)
1 parent 8e88af7 commit 9a2cee3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
mkdir -p /etc/condor-ce/mapfiles.d/
2+
13
# Return list of local users mapped from grid credentials
24
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
5+
{
6+
awk '$1 == "SCITOKENS" { print $NF }' /etc/condor-ce/condor_mapfile \
7+
/etc/condor-ce/mapfiles.d/* 2>/dev/null
8+
cat /etc/grid-security/grid-mapfile /etc/grid-security/voms-mapfile |
9+
awk '/^"[^"]+" +[a-zA-Z0-9\-\._]+$/ {print $NF}'
10+
} | sort -u
611
}
12+

0 commit comments

Comments
 (0)