---
name: "lcmaps_ldap_enf.mod"
section: "8"
platform: "linux"
package: "lcmaps-plugins-basic-ldap"
version: "1.7.1-2+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lcmaps_ldap_enf.mod"
---

# lcmaps\_ldap\_enf.mod(8)

LCMAPS plugin to update ldap according to credentials

## NAME

lcmaps\_ldap\_enf.mod - LCMAPS plugin to update ldap according to credentials

## SYNOPSIS

**lcmaps\_ldap\_enf.mod -maxuid** *maxuid* **-maxpgid** *maxpgid* **-maxsgid** *maxsgid* **-hostname** *hostname* **-port** *port* \[**-require\_all\_groups** {**yes**\|**no**}\] **-dn\_manager** *DN* **-ldap\_pw** *filename* **-sb\_groups** *searchbase* **-sb\_user** *searchbase* **-timeout** *seconds*

## DESCRIPTION

Ldap enforcement plugin will alter the user and group settings in the ldap database, using the user and groups settings provided by the credential acquisition plugins.  Note that LDAP has to be used as the source of account information for PAM or NSS and has to be RFC 2307 compliant.

## OPTIONS

- **-maxuid** *maxuid*

  Maximum number of uids to be used. Strongly advised is to set this to 1.

- **-maxpgid** *maxpgid*

  Maximum number of primary gids to be used.

- **-maxsgid** *maxsgid*

  Maximum number of (secondary) gids to be used (not including primary group). Advised is to set this to 1.

- **-hostname** *hostname*

  The hostname on which the LDAP server is running, e.g. asen.nikhef.nl

- **-port** *port*

  The port number to which to connect, e.g. 389

- **-require\_all\_groups** {**yes**\|**no**}

  Specify if all groups set by the PluginManager shall be used. Default is 'yes'.

- **-dn\_manager** *DN*

  DN of the LDAP manager, e.g. "cn=Manager,dc=root"

- **-ldap\_pw** *filename*

  Path to the file containing the password of the LDAP manager. Note: the mode of the file containing the password must be read-only for root (400), otherwise the plugin will not run.

- **-sb\_groups** *searchbase*

  Search base for the (secondary) groups, e.g. "ou=LocalGroups, dc=example, dc=com"

- **-sb\_user** *searchbase*

  Search base for the user, e.g. "ou=LocalUsers, dc=example, dc=com"

- **-timeout** *timeout value*

  timeout (in seconds) that will be applied to the ldap binding

## RETURN VALUE

- **LCMAPS\_MOD\_SUCCESS**

  Success.

- **LCMAPS\_MOD\_FAIL**

  Failure.

## BUGS

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

## SEE ALSO

**lcmaps.db**(5), [**lcmaps**(3)](/lcmaps/3.md), [**ldap**(3)](/ldap/3.md).

## AUTHORS

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