grafana/devenv/docker/blocks/auth/openldap-multiple
2023-09-18 17:21:59 +03:00
..
srv1_prepopulate Devenv: Fix openldap-multiple dev environment (#75013) 2023-09-18 17:21:59 +03:00
srv2_prepopulate Devenv: Fix openldap-multiple dev environment (#75013) 2023-09-18 17:21:59 +03:00
docker-compose.yaml Devenv: Fix openldap-multiple dev environment (#75013) 2023-09-18 17:21:59 +03:00
ldap_dev.toml Devenv: Fix openldap-multiple dev environment (#75013) 2023-09-18 17:21:59 +03:00
README.md Devenv: Fix openldap-multiple dev environment (#75013) 2023-09-18 17:21:59 +03:00

OpenLDAP-Multiple Docker Block

This Docker block uses osixia/openldap image and should work for Apple's ARM chip. Instead of launching solely 1 openldap server, it launches two.

Deployment

First build and deploy the openldap containers.

make devenv sources=auth/openldap-multiple

Exposed ports

The first container will expose port 389 and 636. The second container will expose port 1389 and 1636.

Background services

The osixia/openldap container will update the database with any *.ldif file changes inside ./prepopulate and the ./modules folder. Remember to rebuild the devenv to apply any changes.

Grafana configuration changes

The following changes are needed at Grafana's configuration file.

[auth.ldap]
enabled = true
config_file = ./devenv/docker/blocks/auth/openldap-multiple/ldap_dev.toml

Available users and groups

Srv1 (dc=srv1-grafana,dc=org)

  • admins
    • ldap-admin-srv1
  • editors
    • ldap-editor-srv1
  • no groups
    • ldap-viewer-srv1

Srv2 (dc=srv2-grafana,dc=org)

  • admins
    • ldap-admin-srv2
  • editors
    • ldap-editor-srv2
  • no groups
    • ldap-viewer-srv2