---
name: "lcas_lcmaps_gt4_interface"
section: "8"
platform: "linux"
package: "lcas-lcmaps-gt4-interface"
version: "0.3.1-1+b4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lcas_lcmaps_gt4_interface"
---

# lcas\_lcmaps\_gt4\_interface(8)

A Globus GSI-AuthZ plug-in to run LCAS and LCMAPS

## NAME

lcas\_lcmaps\_gt\_interface - A Globus GSI-AuthZ plug-in to run LCAS and LCMAPS

## SYNOPSIS

**lcas\_lcmaps\_gt\_interface.so**

**lcas\_lcmaps\_gt4\_interface.so**

## DESCRIPTION

This is a plug-in to be loaded from a GSI-AuthZ capable Globus service. The feature was introduced in Globus GT4 and is available for GT5 and GT6. The purpose of this call-out is to authorize a user by optionally running the LCAS framework and subsequently running the LCMAPS framework to map the user credentials to a Unix account. Both LCAS and LCMAPS are plug-in frameworks, where the plug-ins to do the real work.

Some of these plug-ins are capable of imposing a certain policy on the user credentials, others are capable of off-loading the decision to a centralized service to make the decision or even provide an account mapping in the process.

This plug-in is dynamically loaded during each interaction that requires an account mapping in the GSI-AuthZ interface of a Globus service. It has no configuration file for itself, it is configured via environment variables and the LCAS and LCMAPS configuration files. It can be enabled for use in the GSI-AuthZ interface using the *gsi-authz.conf* file, by configuring it to call the function *lcmaps\_callout()*, which can be done using [**gt4-interface-install**(8)](/gt4-interface-install/8.md).

## ENVIRONMENT VARIABLES

- **LLGT\_LOG\_FILE**

  When this variable is set and it can be opened as file, log output will go to the given file instead of to syslog. When either $LCAS\_LOG\_FILE or $LCMAPS\_LOG\_FILE is unset, it will also be set to this same file.

- **LLGT\_LOG\_FACILITY**

  Change the default logging facility with the $LLGT\_LOG\_FACILITY environment variable. Use the name of (standard syslog) facility names. Example: LOG\_DAEMON, LOG\_LOCAL1, etc.

- **LLGT\_LOG\_IDENT**

  The $LLGT\_LOG\_IDENT can (optionally) be set as the syslog ident value. This will be the identifying string in syslog for the current process. Not using this option will let syslog (or one of the GT services) to set these options. By default the syslog ident will be set to the executable name.

- **LLGT\_RUN\_LCAS**

  Set the environment variable $LLGT\_RUN\_LCAS to "no", "disabled" or "disable" to avoid LCAS to run prior to the LCMAPS.

  There is a matching ./configure option "--enable-lcas" which can be used to change the default behaviour to run LCAS or not. The $LLGT\_RUN\_LCAS environment variable can still influence the LCAS run.

- **LLGT\_LIFT\_PRIVILEGED\_PROTECTION**

  Normally the callout, after LCMAPS has finished, checks whether it is (still) running with root privileges (uid, euid, gid or egid) and fails if that is the case. This is to prevent erroneous configurations to silently result in a root-account mapping in services that do not have their own checks for this.

  When the environment variable $LLGT\_LIFT\_PRIVILEGED\_PROTECTION is set, this check is disabled. This is NEEDED for services that:

  1\.) don't user switch, and run as root.

  2\.) 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 the environment variable $LLGT\_CACHE\_CALLOUT to "no", "disabled" or "disable" to disable reusing the result of the \`localname' callout for the \`userok' callout. This results in calling the LCAS/LCMAPS authorization twice for e.g. gsisshd.

- **LLGT\_DLCLOSE\_LCMAPS**

  Set the environment variable $LLGT\_DLCLOSE\_LCMAPS to "no", "disabled" or "disable" to prevent calling *dlclose()* 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.

- **LLGT\_DLCLOSE\_LCAS**

  Set the environment variable $LLGT\_DLCLOSE\_LCAS to "no", "disabled" or "disable" to prevent calling *dlclose()* 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 should not be needed as LCAS is now dlclosed and terminated after LCMAPS.

- **LLGT\_NO\_CHANGE\_USER** *(deprecated)*

  Deprecated $LLGT\_NO\_CHANGE\_USER in favour of $LLGT\_LIFT\_PRIVILEGED\_PROTECTION. (Deprecation does not mean non-functional anymore)

- **LLGT4\_NO\_CHANGE\_USER** *(deprecated)*

  Deprecated $LLGT4\_NO\_CHANGE\_USER in favour of $LLGT\_LIFT\_PRIVILEGED\_PROTECTION. (Depreciation does not mean non-functional anymore)

- **LLGT\_VOMS\_DISABLE\_CREDENTIAL\_CHECK**

  The VOMS credentials are verified by the LCMAPS framework before further processing is done in the plug-ins. The LCMAPS framework has an API to enable or disable the verification of the VOMS credentials and this option will **disable** the verification of the VOMS credentials. A vanilla LCMAPS build will verify the VOMS credentials by default.

- **LLGT\_VOMS\_ENABLE\_CREDENTIAL\_CHECK**

  Similar to the $LLGT\_VOMS\_DISABLE\_CREDENTIAL\_CHECK environment variable, this setting will **enable** the verification of the VOMS credentials, overriding the LCMAPS default setting to have the verification of VOMS credentials to be disabled. A vanilla LCMAPS build will verify the VOMS credentials by default, the OSG build has is disabled by default.

- **LLGT\_LCAS\_LIBDIR**

  Support for an alternative LCAS\_LIBDIR as a run-time setting by exporting such as $LLGT\_LCAS\_LIBDIR="/usr/lib/x86\_64-linux-gnu/liblcas.so"

- **LLGT\_LCAS\_MODULEDIR\_SFX**

  When set, used as suffix instead of the default /lcas when setting the $LCAS\_MODULES\_DIR variable based on the $LLGT\_LCAS\_LIBDIR variable. Default /lcas. **NOTE**: current versions of LCAS do not yet use the $LCAS\_MODULES\_DIR variable.

- **LLGT\_LCMAPS\_LIBDIR**

  Support for an alternative LCMAPS\_LIBDIR as a run-time setting by exporting such as $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\_DIR to the given libdir followed by either the default /lcmaps or the value of $LLGT\_LCMAPS\_MODULEDIR\_SFX.

- **LLGT\_LCMAPS\_MODULEDIR\_SFX**

  When set, used as suffix instead of the default /lcmaps when setting the $LCMAPS\_MODULES\_DIR variable based on the $LLGT\_LCMAPS\_LIBDIR variable. Default /lcmaps.

- **LLGT\_ENABLE\_DEBUG**

  If the $LLGT\_ENABLE\_DEBUG environment variable is set, then the debugging message logged at level LOG\_DEBUG are passed to the log. The scope of this setting is only within the LCAS-LCMAPS-GT-interface

## INTERNAL ENVIRONMENT VARIABLES

- **GATEKEEPER\_JM\_ID**

  An environment variable that is internally set to uniquely identify this gatekeeper and the job manager.

- **JOB\_REPOSITORY\_ID**

  Similar to the $GATEKEEPER\_JM\_ID value, but its purpose is for the LCMAPS job repository plug-in.

## LCAS ENVIRONMENT VARIABLES

The following list of LCAS environment variables are handled specially by the interface.

- **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\_LIBDIR and $LLGT\_LCAS\_MODULEDIR\_SFX or their defaults.

- **LCAS\_LOG\_FILE**

  When set, LCAS will log there instead of syslog. When unset, it will get the value of $LLGT\_LOG\_FILE when that one is set. When compiled with LCAS\_LCMAPS\_FORCE\_LOG\_TO\_FILE defined, it will get 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

The following list of LCMAPS environment variables are handled specially by the interface.

- **LCMAPS\_MODULES\_DIR**

  Default directory for LCMAPS to look for in plug-ins. Will be set based on the values of $LLGT\_LCMAPS\_LIBDIR and $LLGT\_LCMAPS\_MODULEDIR\_SFX or their defaults.

- **LCMAPS\_LOG\_FILE**

  When set, LCMAPS will log there instead of syslog. When unset, it will get the value of $LLGT\_LOG\_FILE when that one is set. When compiled with LCAS\_LCMAPS\_FORCE\_LOG\_TO\_FILE defined, it will get set to /var/log/gt\_lcas\_lcmaps.log.

- **LCMAPS\_DEBUG\_LEVEL**

  For LCMAPS 1.5.0 (and newer) the value "5" corresponds to syslog LOG\_DEBUG, "4" corresponds to LOG\_INFO, "3" to LOG\_NOTICE and so on. The LCMAPS default is to log up to LOG\_INFO.

- **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.

- **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.

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 enforcing pool account mappings to a specific pool account.

## BUGS

Please report any errors to the Nikhef Grid Middleware Security Team \<grid-mw-security-support@nikhef.nl\>.

## SEE ALSO

[**gt4-interface-install**(8)](/gt4-interface-install/8.md), **lcas.db**(5), **lcas**(3), **lcmaps.db**(5), [**lcmaps**(3)](/lcmaps/3.md).

## AUTHORS

LCMAPS and the LCMAPS plug-ins were written by the Grid Middleware Security Team  \<grid-mw-security@nikhef.nl\>.
