Print

Print


…ecision in the program return code. This allows the exit status of the xrdacctest program, when used with the new '-s' option 'singleshot', to reflect the authorization decision:
0 corresponds to allowed
1 corresponds to denied.

This will be useful for the GridFTP Ceph plugin, to allow a simple callout to xrdacctest to evaluate access requests. Much easier to check the exit status of a forked xrdacctest process than parsing its standard output for 'allowed' or 'denied'.
You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/399

-- Commit Summary --

  * Added singleshot mode (with -s flag). Return the value of the authZ decision in the program return code

-- File Changes --

    M src/XrdApps/XrdAccTest.cc (15)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/399.patch
https://github.com/xrootd/xrootd/pull/399.diff

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/399

########################################################################
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