{"id":37179426,"url":"https://github.com/tomcz/openldap_exporter","last_synced_at":"2026-01-14T20:52:56.568Z","repository":{"id":41287773,"uuid":"127481214","full_name":"tomcz/openldap_exporter","owner":"tomcz","description":"This is a simple service that scrapes metrics from OpenLDAP and exports them via HTTP for Prometheus consumption.","archived":true,"fork":false,"pushed_at":"2024-08-31T23:58:02.000Z","size":9359,"stargazers_count":48,"open_issues_count":0,"forks_count":55,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-09-14T04:37:56.265Z","etag":null,"topics":["metrics","openldap","openldap-exporter","prometheus","scrapes-metrics"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomcz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-30T23:14:25.000Z","updated_at":"2024-09-05T08:51:49.000Z","dependencies_parsed_at":"2024-06-18T22:33:54.617Z","dependency_job_id":"5c797c2c-50e8-4c63-90fc-0b71b81d6915","html_url":"https://github.com/tomcz/openldap_exporter","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/tomcz/openldap_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomcz%2Fopenldap_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomcz%2Fopenldap_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomcz%2Fopenldap_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomcz%2Fopenldap_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomcz","download_url":"https://codeload.github.com/tomcz/openldap_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomcz%2Fopenldap_exporter/sbom","scorecard":{"id":892388,"data":{"date":"2025-08-11","repo":{"name":"github.com/tomcz/openldap_exporter","commit":"9d35ef7cafe4fe43ca65e3204ad0246c1d1c4c53"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/tomcz/openldap_exporter/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/tomcz/openldap_exporter/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/tomcz/openldap_exporter/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/tomcz/openldap_exporter/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/tomcz/openldap_exporter/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/tomcz/openldap_exporter/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/tomcz/openldap_exporter/release.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.3.2 not signed: https://api.github.com/repos/tomcz/openldap_exporter/releases/172912179","Warn: release artifact v2.3.1 not signed: https://api.github.com/repos/tomcz/openldap_exporter/releases/172912137","Warn: release artifact v2.3.0 not signed: https://api.github.com/repos/tomcz/openldap_exporter/releases/172911958","Warn: release artifact v2.2.2 not signed: https://api.github.com/repos/tomcz/openldap_exporter/releases/74362665","Warn: release artifact v2.2.1 not signed: https://api.github.com/repos/tomcz/openldap_exporter/releases/65179181","Warn: release artifact v2.3.2 does not have provenance: https://api.github.com/repos/tomcz/openldap_exporter/releases/172912179","Warn: release artifact v2.3.1 does not have provenance: https://api.github.com/repos/tomcz/openldap_exporter/releases/172912137","Warn: release artifact v2.3.0 does not have provenance: https://api.github.com/repos/tomcz/openldap_exporter/releases/172911958","Warn: release artifact v2.2.2 does not have provenance: https://api.github.com/repos/tomcz/openldap_exporter/releases/74362665","Warn: release artifact v2.2.1 does not have provenance: https://api.github.com/repos/tomcz/openldap_exporter/releases/65179181"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T12:21:38.915Z","repository_id":41287773,"created_at":"2025-08-24T12:21:38.915Z","updated_at":"2025-08-24T12:21:38.915Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["metrics","openldap","openldap-exporter","prometheus","scrapes-metrics"],"created_at":"2026-01-14T20:52:55.867Z","updated_at":"2026-01-14T20:52:56.549Z","avatar_url":"https://github.com/tomcz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e This repository is now archived.  \n\u003e Thank you all for your excellent contributions.  \n\u003e May it continue to live in all your wonderful forks.\n\n# OpenLDAP Prometheus Exporter\n\nThis is a simple service that scrapes metrics from OpenLDAP and exports them via HTTP for Prometheus consumption.\n\nThis exporter is based on the ideas in https://github.com/jcollie/openldap_exporter, but it is written in golang to allow for simpler distribution and installation.\n\n## Setting up OpenLDAP for monitoring\n\n_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](http://www.openldap.org/doc/admin24/backends.html#Monitor) and [administration guide](http://www.openldap.org/doc/admin24/monitoringslapd.html).\n\nTo enable the backend add the following to the bottom of your `slapd.conf` file:\n\n```\ndatabase monitor\nrootdn \"cn=monitoring,cn=Monitor\"\nrootpw YOUR_MONITORING_ROOT_PASSWORD\n```\n\nTechnically you don't need `rootdn` or `rootpw`, but having unauthenticated access to _slapd_ feels a little wrong.\n\nYou 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`:\n\n```\nmoduleload  back_monitor\n```\n\nOnce you've built the exporter (see below), or downloaded the [latest release](https://github.com/tomcz/openldap_exporter/releases), you can install it on the same server as your _slapd_ instance, and run it as a service. You can then configure Prometheus to pull metrics from the exporter's `/metrics` endpoint on port 9330, and check to see that it is working via curl:\n\n```\n$\u003e curl -s http://localhost:9330/metrics\n...\n# HELP openldap_monitor_counter_object cn=Monitor (objectClass=monitorCounterObject) monitorCounter\n# TYPE openldap_monitor_counter_object gauge\nopenldap_monitor_counter_object{dn=\"cn=Bytes,cn=Statistics,cn=Monitor\"} 1.857812777e+09\nopenldap_monitor_counter_object{dn=\"cn=Current,cn=Connections,cn=Monitor\"} 50\nopenldap_monitor_counter_object{dn=\"cn=Entries,cn=Statistics,cn=Monitor\"} 4.226632e+06\nopenldap_monitor_counter_object{dn=\"cn=Max File Descriptors,cn=Connections,cn=Monitor\"} 1024\nopenldap_monitor_counter_object{dn=\"cn=PDU,cn=Statistics,cn=Monitor\"} 4.446117e+06\nopenldap_monitor_counter_object{dn=\"cn=Read,cn=Waiters,cn=Monitor\"} 31\nopenldap_monitor_counter_object{dn=\"cn=Referrals,cn=Statistics,cn=Monitor\"} 0\nopenldap_monitor_counter_object{dn=\"cn=Total,cn=Connections,cn=Monitor\"} 65383\nopenldap_monitor_counter_object{dn=\"cn=Write,cn=Waiters,cn=Monitor\"} 0\n# HELP openldap_monitor_operation cn=Operations,cn=Monitor (objectClass=monitorOperation) monitorOpCompleted\n# TYPE openldap_monitor_operation gauge\nopenldap_monitor_operation{dn=\"cn=Abandon,cn=Operations,cn=Monitor\"} 0\nopenldap_monitor_operation{dn=\"cn=Add,cn=Operations,cn=Monitor\"} 0\nopenldap_monitor_operation{dn=\"cn=Bind,cn=Operations,cn=Monitor\"} 57698\nopenldap_monitor_operation{dn=\"cn=Compare,cn=Operations,cn=Monitor\"} 0\nopenldap_monitor_operation{dn=\"cn=Delete,cn=Operations,cn=Monitor\"} 0\nopenldap_monitor_operation{dn=\"cn=Extended,cn=Operations,cn=Monitor\"} 0\nopenldap_monitor_operation{dn=\"cn=Modify,cn=Operations,cn=Monitor\"} 0\nopenldap_monitor_operation{dn=\"cn=Modrdn,cn=Operations,cn=Monitor\"} 0\nopenldap_monitor_operation{dn=\"cn=Search,cn=Operations,cn=Monitor\"} 161789\nopenldap_monitor_operation{dn=\"cn=Unbind,cn=Operations,cn=Monitor\"} 9336\n# HELP openldap_monitored_object cn=Monitor (objectClass=monitoredObject) monitoredInfo\n# TYPE openldap_monitored_object gauge\nopenldap_monitored_object{dn=\"cn=Active,cn=Threads,cn=Monitor\"} 1\nopenldap_monitored_object{dn=\"cn=Backload,cn=Threads,cn=Monitor\"} 1\nopenldap_monitored_object{dn=\"cn=Max Pending,cn=Threads,cn=Monitor\"} 0\nopenldap_monitored_object{dn=\"cn=Max,cn=Threads,cn=Monitor\"} 16\nopenldap_monitored_object{dn=\"cn=Open,cn=Threads,cn=Monitor\"} 8\nopenldap_monitored_object{dn=\"cn=Pending,cn=Threads,cn=Monitor\"} 0\nopenldap_monitored_object{dn=\"cn=Starting,cn=Threads,cn=Monitor\"} 0\nopenldap_monitored_object{dn=\"cn=Uptime,cn=Time,cn=Monitor\"} 1.225737e+06\n# HELP openldap_scrape successful vs unsuccessful ldap scrape attempts\n# TYPE openldap_scrape counter\nopenldap_scrape{result=\"ok\"} 6985\n...\n```\n\n## Configuration\n\nYou can configure `openldap_exporter` using multiple configuration sources at the same time. All configuration sources are optional, if none are provided then the default values will be used.\n\nThe precedence of these configuration sources is as follows (from the highest to the lowest):\n\n1. Command line flags\n2. Environment variables\n3. YAML configuration file parameters\n4. Default values\n\n```\nNAME:\n   openldap_exporter - Export OpenLDAP metrics to Prometheus\n\nUSAGE:\n   openldap_exporter [global options] [arguments...]\n\nVERSION:\n   v2.2.0\n\nGLOBAL OPTIONS:\n   --promAddr value           Bind address for Prometheus HTTP metrics server (default: \":9330\") [$PROM_ADDR]\n   --metrPath value           Path on which to expose Prometheus metrics (default: \"/metrics\") [$METRICS_PATH]\n   --ldapNet value            Network of OpenLDAP server (default: \"tcp\") [$LDAP_NET]\n   --ldapAddr value           Address and port of OpenLDAP server (default: \"localhost:389\") [$LDAP_ADDR]\n   --ldapUser value           OpenLDAP bind username (optional) [$LDAP_USER]\n   --ldapPass value           OpenLDAP bind password (optional) [$LDAP_PASS]\n   --interval value           Scrape interval (default: 30s) [$INTERVAL]\n   --webCfgFile FILE          Prometheus metrics web config FILE (optional) [$WEB_CFG_FILE]\n   --jsonLog                  Output logs in JSON format (default: false) [$JSON_LOG]\n   --replicationObject value  Object to watch replication upon\n   --config YAML_FILE         Optional configuration from a YAML_FILE\n   --help, -h                 show help (default: false)\n   --version, -v              print the version (default: false)\n```\n\nExample:\n\n```\nINTERVAL=10s /usr/sbin/openldap_exporter --promAddr \":8080\" --config /etc/slapd/exporter.yaml\n```\n\nWhere `exporter.yaml` looks like this:\n\n```yaml\n---\nldapUser: \"cn=monitoring,cn=Monitor\"\nldapPass: \"sekret\"\n```\n\nNOTES:\n\n* `ldapNet` allows you to configure `tcp` or `unix` socket connections to your co-located OpenLDAP server.\n* `webCfgFile` can be used to provide authentication and TLS configuration for the [prometheus web exporter](https://github.com/prometheus/exporter-toolkit/tree/master/web).\n\n## Build\n\n1. Install Go 1.22 from https://golang.org/\n2. Build the binaries: `make build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomcz%2Fopenldap_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomcz%2Fopenldap_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomcz%2Fopenldap_exporter/lists"}