The setenv is in the xrootd configuration file. I am trying to use setenv as described in section 4.4 of the configuration file syntax manual.

The configuration I am trying to use is:

set redirector = elephant103.heprc.uvic.ca

all.manager $(redirector):1095


# Debugging output
#xrd.trace all
#xrootd.trace all
#ofs.trace all
#sec.trace all
#pss.trace all
#http.trace all


all.export /

# The names used here must match what is going to be passed as server_type
if named s3_proxy
  # Proxy setup
  all.role proxy server
  ofs.osslib libXrdPss.so
  pss.origin http://elephant102.heprc.uvic.ca:9000
  pss.localroot /bucket

  # XRootD doesn't seem to like reading files directly into environment variables
  set ACCESS_KEY < /etc/xrootd/access_key
  set SECRET_KEY < /etc/xrootd/secret_key

  setenv AWS_ACCESS_KEY_ID = $ACCESS_KEY
  setenv AWS_SECRET_ACCESS_KEY = $SECRET_KEY
else if named standalone
  all.role server
  oss.localroot /data
fi

# TLS Setup
xrd.tls /etc/grid-security/xrd/xrdcert.pem /etc/grid-security/xrd/xrdkey.pem
xrd.tlsca certdir /etc/grid-security/certificates
xrootd.tls all

if $redirector
  all.role manager
  http.desthttps yes
else
  xrootd.seclib libXrdSec.so
  sec.protocol gsi -dlgpxy:request \
                   -exppxy:=creds \
                   -ca:verify \
                   -crl:try \
                   -gmapopt:nomap \
                   -vomsat:require \
                   -vomsfun:default
fi

xrootd.seclib libXrdSec.so
http.secxtractor libXrdHttpVOMS.so

if exec xrootd
  xrd.protocol http libXrdHttp.so
fi

# Authorization configuration
ofs.authorize
acc.audit deny grant
acc.authdb /etc/xrootd/Authfile

# TPC Setup
xrootd.chksum adler32

ofs.tpc fcreds ?gsi =X509_USER_PROXY
ofs.tpc require client gsi
ofs.tpc scan stderr
ofs.tpc echo
ofs.tpc ttl 300 600
ofs.tpc xfr 100
ofs.tpc autorm
ofs.tpc pgm /etc/xrootd/tpc.sh

http.exthandler xrdtpc libXrdHttpTPC.so
http.header2cgi Authorization authz

# Macaroon setup
http.exthandler xrdmacaroons libXrdMacaroons.so
macaroons.secretkey /etc/xrootd/macaroon-secret
all.sitename test_sitename
ofs.authlib libXrdMacaroons.so


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/issues/1899/1422916583@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1899#issuecomment-1422916583", "url": "https://github.com/xrootd/xrootd/issues/1899#issuecomment-1422916583", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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