/usr/share/voms/voms-ping is in voms-server 2.1.0~rc0-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | #!/bin/sh
#set -x
RES_COL=40
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_WARNING="echo -en \\033[1;33m"
SETCOLOR_NORMAL="echo -en \\033[0;39m"
echo_success() {
  $MOVE_TO_COL
  echo -n "[  "
  $SETCOLOR_SUCCESS
  echo -n $1
  $SETCOLOR_NORMAL
  echo "  ]"
}
echo_failure() {
  $MOVE_TO_COL
  echo -n "[  "
  $SETCOLOR_FAILURE
  echo -n $1
  $SETCOLOR_NORMAL
  echo "  ]"
}
test_vo() {
   local voname="$1"
   local port=`cat $GLITE_LOCATION/etc/voms/$voname/voms.conf  | grep '^--port' | sed 's/^--port=//'`
   local dn=`openssl x509 -subject -noout -in /etc/grid-security/hostcert.pem|cut -d' ' -f2-`
   set -e
   if nc localhost $port < /dev/null; then
       :
   else
       echo_failure Core
       return 1
   fi
   set +e
   cat >/tmp/vomses <<EOF
"$voname" "localhost" "$port" "$dn" "$voname"
EOF
   rm -f /tmp/oo
   ${GLITE_LOCATION:-/usr}/bin/voms-proxy-init --voms $vo --out /tmp/proxy --userconf=/tmp/vomses 2>/tmp/oo >/dev/null
   res=$?
   if test $res -ne 0; then
      grep "User unknown to this VO" /tmp/oo >/dev/null
      res=$?
      if test $res -ne 0; then
      echo_failure Core
      return 1
      fi
   fi
   echo_success OK
   return 0
}
vos=$@            # Space-separated list of VOs
result=0
for vo in $vos; do
    echo -n "Testing $vo: "
    if test_vo $vo; then
   :
    else
   result=1
    fi
done
exit $result
 |