riftbit/openldap-exporter

By riftbit

Updated over 3 years ago

Image
0

364

riftbit/openldap-exporter repository overview

openldap-exporter

openldap-exporter

openldap server configuration

slapd supports an optional LDAP monitoring interface you can use to obtain information regarding the current state of your slapd instance. Documentation for this backend can be found in the OpenLDAP backend guide and administration guide.

To enable the backend add the following to the bottom of your slapd.conf file:

database monitor
rootdn "cn=monitoring,cn=Monitor"
rootpw YOUR_MONITORING_ROOT_PASSWORD

Technically you don't need rootdn or rootpw, but having unauthenticated access to slapd feels a little wrong.

You may need to also load the monitoring backend module if your slapd installation needs to load backends as modules by adding this to your slapd.conf:

moduleload  back_monitor
Build
TAG="riftbit/openldap-exporter:v2.2.2"
docker build -t ${TAG} .
Run
docker run -dit --restart always --name openldap-exporter -p 9330:9330 ${TAG} --ldapAddr 192.168.5.22:389 --ldapUser cn=root,dc=handsomexu,dc=com --ldapPass password
Get logs
docker logs -f --tail=200 openldap-exporter

Tag summary

Content type

Image

Digest

sha256:7ba0e275e

Size

6.7 MB

Last updated

over 3 years ago

docker pull riftbit/openldap-exporter