OCF_HEARTBEAT_SLAPD(7)
π OCF_HEARTBEAT_SLAPD π
okay bestie, gather round, because today we're talking about ocf_heartbeat_slapd from the OCF resource agents collection β it's giving "manages a Stand-alone LDAP Daemon (slapd) instance" and honestly? iconic. π«Ά
β¨ NAME β¨
ocf_heartbeat_slapd β literally here to manage a Stand-alone LDAP Daemon (slapd) instance. that's the whole job. she's a specialist. π
πΈ SYNOPSIS πΈ
slapd [start | stop | monitor | meta-data | validate-all]
look at her. five little actions. no cap, that's the entire vibe. β¨
π¦ DESCRIPTION π¦
so basically this is a resource script for the Stand-alone LDAP Daemon (slapd), and what it does is manage a slapd instance as an OCF resource. that's it, that's the tweet. she shows up, she runs your slapd, she plays nice with your cluster. main character energy fr fr. π
π SUPPORTED PARAMETERS π
these are the knobs, bestie. turn them wisely. π₯
slapdβ full path to theslapdbinary, like for example"/usr/sbin/slapd". (optional, string, default"/usr/sbin/slapd")ldapsearchβ full path to theldapsearchbinary, e.g."/usr/bin/ldapsearch". (optional, string, default"ldapsearch")configβ full path to a slapd configuration directory OR a slapd configuration file. examples being"/etc/ldap/slapd.d"or"/etc/ldap/slapd.conf". (unique, optional, string, no default)pidfileβ the file we read the PID from; if you don't set it, it gets read fromolcPidFile/pidfileinside the config. (optional, string, no default)userβ user name or id thatslapdwill run as. heads up: the group id ALSO gets changed to this user's gid, unless you use thegroupparameter to override that. (optional, string, no default)groupβ group name or id thatslapdwill run with. (optional, string, no default)servicesβ the LDAP (and other scheme) URLs thatslapdwill serve. like, for example,"ldap://127.0.0.1:389 ldaps:/// ldapi:///". (unique, optional, string, default"ldap:///")watch_suffixβ the suffix (database backend) that gets monitored for availability. you can do multiple suffixes by giving a space separated list. π«Ά important: if you provide one or more suffixes here, theignore_suffixparameter is discarded. if you leave it blank, ALL suffixes get monitored. (optional, string, no default)ignore_suffixβ the suffix (database backend) that will NOT be monitored for availability. multiple ones? space separated list, bestie. leave it blank and no suffix gets excluded. (optional, string, no default)bind_dnβ Distinguished Name used to bind to the LDAP directory for testing purposes. leave it blank and you 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βslapdmay be called with extra parameters, and any of them go right here. (optional, string, no default)stop_escalateβ how many seconds to wait for shutdown (usingSIGTERM) before resorting toSIGKILL. π dramatic but necessary. (optional, integer, default15)maxfilesβ maximum number of open files (forulimit -n). (optional, string, no default)
β SUPPORTED ACTIONS β
this resource agent supports the following actions (operations), and yes she serves:
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, don't touch). suggested minimum timeout:5s.
π EXAMPLE CRM SHELL π
here's what a slapd resource config looks like using the crm(8) shell β copy it, love it, run it:
primitive p_slapd ocf:heartbeat:slapd \
op monitor depth="0" timeout="20s" interval="60s"
π EXAMPLE PCS π
and here's the same energy using pcs(8):
pcs resource create p_slapd ocf:heartbeat:slapd \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="60s"
π SEE ALSO π
iykyk. go read it. π
π§ AUTHOR π§
ClusterLabs contributors (see the resource agent source for information about individual authors). shoutout to the whole crew, they ate and left no crumbs. π
π no cap: this page is from resource-agents version UNKNOWN, dated 04/08/2026. that's the whole lore. now go forth and cluster responsibly, bestie. π¦β¨π
π¦ where this page comes from
- fedora 43: resource-agents 4.18.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: resource-agents 4.18.0-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms