Skip to main content

Enable monitoring in ldap.

It is a prerequisite that the OpenLDAP monitoring module is enabled and configured.

Check if your monitoring module is enabled in your OpenLDAP installation:

ldapsearch -Y EXTERNAL -H ldapi:/// -b "cn=module{0},cn=config"

IfolcModuleLoad: {1}back_monitor is included in the response, the monitoring module is enabled. You can skip to step 3.

To enable the monitoring module, create an module_monitoring.ldif file

 dn: cn=module{0},cn=config
 changetype: modify
 add: olcModuleLoad
 olcModuleLoad: {1}back_monitor

and execute the command:

ldapmodify -Y EXTERNAL -H ldapi:/// -f module_monitor.ldif

Create an encrypted password for the monitoring user:

slapdpasswd -s <MONITOR_USER_PASSWORD>

If this does not work, try the following:

sudo -i slappasswd