File: myproxy-accepted-credentials-mapapp

package info (click to toggle)
myproxy 6.1.22-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,628 kB
  • ctags: 1,812
  • sloc: ansic: 25,183; sh: 11,726; perl: 3,673; makefile: 361
file content (24 lines) | stat: -rwxr-xr-x 571 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
if [ $# -ne 2 ]; then
    # need 2 command line arguments
    exit 1
fi
subjectdn=$1
username=$2

# example 1: verify the DN matches an accepted pattern
#if [ "${subjectdn}" != "/O=Grid/OU=MyProxy CA/CN=${username}" ]; then
#    exit 1
#fi

# example 2: check the DN against a blacklist
#blacklistfile="/etc/myproxy-server-blacklist"
#if [ -r  $blacklistfile ]; then
#    grep "${subjectdn}" $blacklistfile >/dev/null 2>&1
#    if [ $? -eq 0 ]; then
#        logger -t myproxy-server denied blacklisted user: "${subjectdn}"
#        exit 1;
#    fi
#fi

exit 0