lcas_lcmaps_gt_interface(8)
π lcas_lcmaps_gt_interface β the manual, bestie edition π
okay so picture this: lcas_lcmaps_gt_interface(8) lives in the Site Access Control section of the manual, and she is literally the plug-in that runs LCAS and LCMAPS inside your Globus service. let's get into it π«Ά
β¨ NAME β¨
lcas_lcmaps_gt_interface β a Globus GSI-AuthZ plug-in that runs LCAS and LCMAPS. that's the whole job description, no notes π
β¨ SYNOPSIS β¨
lcas_lcmaps_gt_interface.so
lcas_lcmaps_gt4_interface.so
two whole .so files, both iconic, both doing the exact same vibe π
β¨ DESCRIPTION β¨
so this is a plug-in that gets loaded from a GSI-AuthZ capable Globus service. the feature dropped in Globus GT4 and is available for GT5 and GT6 too. the whole point of this call-out? authorize a user by optionally running the LCAS framework first, and then running the LCMAPS framework to map the user's credentials onto a Unix account. both LCAS and LCMAPS are plug-in frameworks themselves β the plug-ins are the ones doing the actual real work, they're the main characters fr.
some of these plug-ins can impose a certain policy on the user credentials, and others can off-load the decision to a centralized service so that service makes the call, or even hands you back an account mapping in the process. delegation, but make it authorization β¨
this plug-in gets dynamically loaded during every single interaction that needs an account mapping in the GSI-AuthZ interface of a Globus service. she has no configuration file of her own β nope, she's configured via environment variables plus the LCAS and LCMAPS configuration files. and you enable her for use in the GSI-AuthZ interface through the gsi-authz.conf file, by configuring it to call the function lcmaps_callout(), which you can do with gt4-interface-install(8). easy. periodt π
β¨ ENVIRONMENT VARIABLES β¨
the whole personality is here, bestie. read carefully π
LLGT_LOG_FILEβ when this variable is set and it can actually be opened as a file, log output goes to that file instead of to syslog. and when either$LCAS_LOG_FILEor$LCMAPS_LOG_FILEis unset, it'll get set to this same file too. sharing is caring π«ΆLLGT_LOG_FACILITYβ changes the default logging facility. use the name of (standard syslog) facility names. example:LOG_DAEMON,LOG_LOCAL1, etc. π«LLGT_LOG_IDENTβ can (optionally) be set as the syslog ident value. this is the identifying string in syslog for the current process. not using this option lets syslog (or one of the GT services) set these options instead. by default the syslog ident is set to the executable name. no cap.LLGT_RUN_LCASβ set this to"no","disabled"or"disable"to stop LCAS from running before LCMAPS. there's a matching./configureoption--enable-lcasthat changes the default behaviour of running LCAS or not, but the$LLGT_RUN_LCASenvironment variable can still influence the LCAS run. she always gets a say πLLGT_LIFT_PRIVILEGED_PROTECTIONβ normally the callout, after LCMAPS has finished, checks whether it's (still) running with root privileges (uid, euid, gid or egid) and fails if that is the case. this is to prevent erroneous configurations from silently resulting in a root-account mapping in services that don't have their own checks for this. when this variable is set, that check is disabled. this is NEEDED for services that:- don't user switch, and run as root.
- services that expect only a username to be returned and perform the user switch themselves, e.g. the Globus GSI-OpenSSHd.
LLGT_CACHE_CALLOUTβ set this to"no","disabled"or"disable"to disable reusing the result of thelocalnamecallout for theuserokcallout. that means LCAS/LCMAPS authorization gets called twice for e.g. gsisshd. yeah. twice. πLLGT_DLCLOSE_LCMAPSβ set this to"no","disabled"or"disable"to prevent callingdlclose()on the LCMAPS library. this might be needed as a workaround on RH5-based systems in an installation for gsisshd, when the use of PAM is enabled ("UsePAM Yes"in the/etc/gsissh/sshd_config). the underlying bug is a combination between the OpenSSL, VOMS and PAM libraries, which can trigger a segfault when VOMS is initialized twice. π not cute.LLGT_DLCLOSE_LCASβ set this to"no","disabled"or"disable"to prevent callingdlclose()on the LCAS library. this might be needed as a workaround on RH5-based systems. the underlying bug is a combination between the OpenSSL, VOMS and Globus libraries, which can trigger a segfault when VOMS is initialized twice β which can happen when LCAS is using a VOMS based plugin. normally this should not be needed, since LCAS is now dlclosed and terminated after LCMAPS. glow up achieved β¨LLGT_NO_CHANGE_USER(deprecated) β deprecated in favour of$LLGT_LIFT_PRIVILEGED_PROTECTION. and just so we're clear: (deprecation does not mean non-functional anymore). she still works, she's just retired π«ΆLLGT4_NO_CHANGE_USER(deprecated) β deprecated in favour of$LLGT_LIFT_PRIVILEGED_PROTECTION. (depreciation does not mean non-functional anymore). same energy, different spelling in the original, iykyk πLLGT_VOMS_DISABLE_CREDENTIAL_CHECKβ the VOMS credentials get verified by the LCMAPS framework before any further processing happens in the plug-ins. LCMAPS has an API to enable or disable the verification of VOMS credentials, and this option disables that verification. a vanilla LCMAPS build will verify the VOMS credentials by default.LLGT_VOMS_ENABLE_CREDENTIAL_CHECKβ similar to$LLGT_VOMS_DISABLE_CREDENTIAL_CHECK, but this one enables the verification of the VOMS credentials, overriding the LCMAPS default setting of having VOMS credential verification disabled. a vanilla LCMAPS build verifies the VOMS credentials by default; the OSG build has it disabled by default. two builds, two vibes πΈLLGT_LCAS_LIBDIRβ support for an alternativeLCAS_LIBDIRas a run-time setting, by exporting something like$LLGT_LCAS_LIBDIR="/usr/lib/x86_64-linux-gnu/liblcas.so"β¨LLGT_LCAS_MODULEDIR_SFXβ when set, used as the suffix instead of the default/lcaswhen setting the$LCAS_MODULES_DIRvariable based on the$LLGT_LCAS_LIBDIRvariable. default/lcas. NOTE: current versions of LCAS do not yet use the$LCAS_MODULES_DIRvariable. she's pre-gaming, basically.LLGT_LCMAPS_LIBDIRβ support for an alternativeLCMAPS_LIBDIRas a run-time setting, by exporting something like$LLGT_LCMAPS_LIBDIR="/usr/lib/x86_64-linux-gnu/liblcmaps.so". must be an absolute path. setting this variable will also set the LCMAPS variable$LCMAPS_MODULES_DIRto the given libdir followed by either the default/lcmapsor the value of$LLGT_LCMAPS_MODULEDIR_SFX. multitasking πLLGT_LCMAPS_MODULEDIR_SFXβ when set, used as the suffix instead of the default/lcmapswhen setting the$LCMAPS_MODULES_DIRvariable based on the$LLGT_LCMAPS_LIBDIRvariable. default/lcmaps.LLGT_ENABLE_DEBUGβ if this variable is set, then the debugging messages logged at levelLOG_DEBUGare passed to the log. the scope of this setting is only within the LCAS-LCMAPS-GT-interface. very much a local legend π
β¨ INTERNAL ENVIRONMENT VARIABLES β¨
these ones are set internally, don't touch, they know what they're doing π₯
GATEKEEPER_JM_IDβ an environment variable that's internally set to uniquely identify this gatekeeper and the job manager.JOB_REPOSITORY_IDβ similar to the$GATEKEEPER_JM_IDvalue, but its purpose is for the LCMAPS job repository plug-in.
β¨ LCAS ENVIRONMENT VARIABLES β¨
the following list of LCAS environment variables is handled specially by the interface. she's got favourites π
LCAS_MODULES_DIRβ default directory for LCAS to look for in plug-ins (not yet supported by LCAS). will be set based on the values of$LLGT_LCAS_LIBDIRand$LLGT_LCAS_MODULEDIR_SFXor their defaults.LCAS_LOG_FILEβ when set, LCAS logs there instead of to syslog. when unset, it gets the value of$LLGT_LOG_FILEwhen that one is set. when compiled withLCAS_LCMAPS_FORCE_LOG_TO_FILEdefined, it gets set to/var/log/gt_lcas_lcmaps.log. πLCAS_DEBUG_LEVELβ LCAS log level. default:3.LCAS_DB_FILEβ location of the LCAS configuration file. default for the interface:/etc/lcas/lcas.db.
β¨ LCMAPS ENVIRONMENT VARIABLES β¨
and now the LCMAPS side of the family, also handled specially π
LCMAPS_MODULES_DIRβ default directory for LCMAPS to look for in plug-ins. will be set based on the values of$LLGT_LCMAPS_LIBDIRand$LLGT_LCMAPS_MODULEDIR_SFXor their defaults.LCMAPS_LOG_FILEβ when set, LCMAPS logs there instead of to syslog. when unset, it gets the value of$LLGT_LOG_FILEwhen that one is set. when compiled withLCAS_LCMAPS_FORCE_LOG_TO_FILEdefined, it gets set to/var/log/gt_lcas_lcmaps.log. πLCMAPS_DEBUG_LEVELβ for LCMAPS 1.5.0 (and newer) the value"5"corresponds to syslogLOG_DEBUG,"4"corresponds toLOG_INFO,"3"toLOG_NOTICEand so on. the LCMAPS default is to log up toLOG_INFO. numbers, but make it β¨vibesβ¨LCMAPS_DB_FILEβ location of the LCMAPS configuration file. default for the interface:/etc/lcmaps/lcmaps.db.
β¨ RETURN VALUES β¨
- True β the user is authorized and a local Unix account was procured. slay π
- False β no mapping was possible. π
β¨ NOTES β¨
from version 0.3.1 onwards, the interface supports the 'sharing' service: it then expects an additional argument, (a PEM string) containing the credential on which the mapping should be based. extra arg, extra responsibility π«Ά
from version 0.3.0 onwards, the interface tries to forward the requested username to LCMAPS (for version 1.6.0 and up). the mapping plugins can use this to support multiple username entries in the grid-mapfile, or to enforce pool account mappings to a specific pool account. she's a connector, not a gatekeeper π
β¨ BUGS β¨
if something's broken, please report any errors to the Nikhef Grid Middleware Security Team <grid-mw-security-support@nikhef.nl>. they're lovely, they'll help π
β¨ SEE ALSO β¨
gt4-interface-install(8), lcas.db(5), lcas(3), lcmaps.db(5), lcmaps(3) β go read the whole friend group, no skips π
β¨ AUTHORS β¨
LCMAPS and the LCMAPS plug-ins were written by the Grid Middleware Security Team <grid-mw-security@nikhef.nl>. absolute legends, no notes π
and that's the whole page, bestie!! this one is from lcas-lcmaps-gt4-interface 0..., dated February 11, 2015, and it's filed under lcas_lcmaps_gt_interface(8). go forth and map those accounts π¦πβ¨
π¦ where this page comes from
- ubuntu resolute: lcas-lcmaps-gt4-interface 0.3.2-1 Β· Apache-2.0
- ubuntu stonking: lcas-lcmaps-gt4-interface 0.3.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms