---
name: "ocf_heartbeat_slapd"
section: "7"
platform: "linux"
package: "resource-agents"
version: "1:4.16.0-3+deb13u2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ocf_heartbeat_slapd"
---

# ocf\_heartbeat\_slapd(7)

Manages a Stand-alone LDAP Daemon (slapd) instance

## NAME

ocf\_heartbeat\_slapd - Manages a Stand-alone LDAP Daemon (slapd) instance

## SYNOPSIS

**slapd** \[start \| stop \| monitor \| meta-data \| validate-all\]

## DESCRIPTION

Resource script for Stand-alone LDAP Daemon (slapd). It manages a slapd instance as an OCF resource.

## SUPPORTED PARAMETERS

**slapd**

Full path to the slapd binary. For example, "/usr/sbin/slapd".

(optional, string, default "/usr/sbin/slapd")

**ldapsearch**

Full path to the ldapsearch binary. For example, "/usr/bin/ldapsearch".

(optional, string, default "ldapsearch")

**config**

Full path to a slapd configuration directory or a slapd configuration file. For example, "/etc/ldap/slapd.d" or "/etc/ldap/slapd.conf".

(unique, optional, string, no default)

**pidfile**

File to read the PID from; read from olcPidFile/pidfile in config if not set.

(optional, string, no default)

**user**

User name or id slapd will run with. The group id is also changed to this user's gid, unless the group parameter is used to override.

(optional, string, no default)

**group**

Group name or id slapd will run with.

(optional, string, no default)

**services**

LDAP (and other scheme) URLs slapd will serve. For example, "ldap://127.0.0.1:389 ldaps:/// ldapi:///"

(unique, optional, string, default "ldap:///")

**watch\_suffix**

Suffix (database backend) that will be monitored for availability. Multiple suffixes can be specified by providing a space separated list. By providing one or more suffixes here, the ignore\_suffix parameter is discarded. All suffixes will be monitored if left blank.

(optional, string, no default)

**ignore\_suffix**

Suffix (database backend) that will not be monitored for availability. Multiple suffixes can be specified by providing a space separated list. No suffix will be excluded if left blank.

(optional, string, no default)

**bind\_dn**

Distinguished Name used to bind to the LDAP directory for testing. Leave blank to bind to the LDAP directory anonymously.

(optional, string, no default)

**password**

Password used to bind to the LDAP directory for testing.

(optional, string, no default)

**parameters**

slapd may be called with additional parameters. Specify any of them here.

(optional, string, no default)

**stop\_escalate**

Number of seconds to wait for shutdown (using SIGTERM) before resorting to SIGKILL

(optional, integer, default 15)

**maxfiles**

Maximum number of open files (for ulimit -n)

(optional, string, no default)

## SUPPORTED ACTIONS

This resource agent supports the following actions (operations):

**start**

Starts the resource. Suggested minimum timeout: 20s.

**stop**

Stops the resource. Suggested minimum timeout: 20s.

**monitor**

Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.

**validate-all**

Performs a validation of the resource configuration. Suggested minimum timeout: 20s.

**meta-data**

Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.

## EXAMPLE CRM SHELL

The following is an example configuration for a slapd resource using the [**crm**(8)](/crm/8.md) shell:

```
primitive p_slapd ocf:heartbeat:slapd \
  op monitor depth="0" timeout="20s" interval="60s"
```

## EXAMPLE PCS

The following is an example configuration for a slapd resource using [**pcs**(8)](/pcs/8.md)

```
pcs resource create p_slapd ocf:heartbeat:slapd \
  op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="60s"
```

## SEE ALSO

**http://clusterlabs.org/**

## AUTHOR

**ClusterLabs contributors (see the resource agent source for information about individual authors)**
