opensciencegrid / xrootd-lcmaps

Integration between Xrootd and LCMAPS.
Apache License 2.0
4 stars 11 forks source link
software

LCMAPS Callout for XRootD

This XRootD plugin provides a way to integrate the XRootD authorization subsystem with the LCMAPS authorization infrastructure. This allows for a site's configuration of GSI and VOMS-based authentication and authorization to apply to an XRootD service.

The LCMAPS callout provides the XRootD authorization subsystem with:

It works with both the XRootD and HTTPS protocol interfaces for XRootD.

Compiling

The plugin requires:

To compile, we recommend an out-of-source build. From an empty directory, run:

cmake ../path/to/source
make
make install

Configuration

The following lines in the XRootD configuration file will enable the LCMAPS plugin based on /etc/lcmaps.db

sec.protocol /usr/lib64 gsi -certdir:/etc/grid-security/certificates -cert:/etc/grid-security/xrd/xrdcert.pem \
                            -key:/etc/grid-security/xrd/xrdkey.pem \
                            -crl:1 \
                            -authzfun:libXrdLcmaps.so \
                            -authzfunparms:lcmapscfg=/etc/lcmaps.db,loglevel=0 \
                            -gmapopt:10 \
                            -gmapto:0

http.secxtractor /usr/lib64/libXrdLcmaps.so

Only the library name (/usr/lib64/libXrdLcmaps.so) and the -authzfun/-authzfunparms are relevant to the plugins; the remaining arguments are simply part of the XRootD configuration.

The following command line flags are accepted:

Note that osg used to be a separate flag for this plug-in; it is no longer applicable and is ignored.