Install and Configure the LDAP Mapper Component
This document describes how to run the LDAP mapper as a LOP component via the Helm chart in this repository.
The LDAP mapper is deployed exclusively via Helm. A Dogu CR or Component CR is not used.
Prerequisites
- Kubernetes cluster with access via
kubectlandhelm - Target namespace, the examples below use
ecosystem - Pull secret for
registry.cloudogu.com, default:ces-container-registries - Global CES configuration as a ConfigMap, default name:
global-config - Secret containing the backend LDAP credentials for the LDAP mapper's read-only service account
- Optional: persistence for
/var/ces/configso that local service accounts survive pod restarts
1. Provide the Global ConfigMap
The component reads global values via doguctl config --global, in particular domain.
At least domain must be set.
Example:
apiVersion: v1
kind: ConfigMap
metadata:
name: global-config
namespace: ecosystem
data:
config.yaml: |
domain: "ces.local"Create it:
kubectl apply -f global-config.yaml2. Create the Secret for the Backend LDAP
The LDAP mapper requires the credentials of a read-only service account for the configured backend LDAP.
The secret is only referenced by the ldap-mapper; it is not created by the chart.
By default, the chart expects:
- Secret name:
lop-idp-ldap-ldap-mapper-sa - Username key:
username - Password key:
password
Example:
apiVersion: v1
kind: Secret
metadata:
name: lop-idp-ldap-ldap-mapper-sa
namespace: ecosystem
type: Opaque
stringData:
username: "ldap-mapper"
password: "<password>"Create it:
kubectl apply -f ldap-mapper-backend-secret.yamlNotes:
- For the internal LOP IdP LDAP,
usernameis typically just the technical account name, for exampleldap-mapper. - For external LDAP servers, the value may be a full bind DN depending on the target system.
- Backend account access should be read-only only.
3. Install via Helm
Install using the chart defaults:
helm upgrade --install ldap-mapper k8s/helm \
--namespace ecosystem \
--create-namespaceInstall using a custom values file:
helm upgrade --install ldap-mapper k8s/helm \
--namespace ecosystem \
--create-namespace \
-f my-values.yamlAlternatively, you can use the existing Make target:
make helm-apply4. Configuration Overview (values.yaml)
| Area | Key in values.yaml | Required | Effect |
|---|---|---|---|
| General | replicas | No | Number of pod replicas in the Deployment. |
| Image & Pull | global.imagePullSecrets | No | Pull secret(s) for the container image. |
| Image & Pull | image.registry | Yes | Container registry of the LDAP mapper image. |
| Image & Pull | image.repository | Yes | Repository of the LDAP mapper image. |
| Image & Pull | image.tag | Yes | Image tag of the LDAP mapper container. |
| Image & Pull | image.pullPolicy | Yes | Pull behavior of the Kubernetes container. |
| Service | service.port | Yes | LDAP frontend port of the LDAP mapper. |
| Backend LDAP | configuration.backend.type | Yes | Backend type, for example embedded for the internal LDAP or external. |
| Backend LDAP | configuration.backend.host | Yes | Hostname or service name of the backend LDAP. |
| Backend LDAP | configuration.backend.port | Yes | Port of the backend LDAP. |
| Logging | configuration.logging.root | No | Log level of the LDAP mapper. |
| User Mapping | configuration.mapping.user.base_dn | No | External user base DN, empty means default based on domain. |
| User Mapping | configuration.mapping.user.search_filter | No | External user search filter. |
| User Mapping | configuration.mapping.user.id | No | Attribute mapping for the user ID. |
| User Mapping | configuration.mapping.user.given_name | No | Attribute mapping for the given name. |
| User Mapping | configuration.mapping.user.surname | No | Attribute mapping for the surname. |
| User Mapping | configuration.mapping.user.full_name | No | Attribute mapping for the display name. |
| User Mapping | configuration.mapping.user.mail | No | Attribute mapping for the mail address. |
| User Mapping | configuration.mapping.user.group | No | Attribute mapping for group references. |
| Group Mapping | configuration.mapping.group.base_dn | No | External group base DN, empty means default based on domain. |
| Group Mapping | configuration.mapping.group.search_filter | No | External group search filter. |
| Group Mapping | configuration.mapping.group.name | No | Attribute mapping for the group name. |
| Group Mapping | configuration.mapping.group.description | No | Attribute mapping for the group description. |
| Group Mapping | configuration.mapping.group.member | No | Attribute mapping for group members. |
| Backend Secret | secretRefs.backendLdap.name | Yes | Name of the secret containing the backend LDAP credentials. |
| Backend Secret | secretRefs.backendLdap.usernameKey | Yes | Secret key containing the username or bind DN. |
| Backend Secret | secretRefs.backendLdap.passwordKey | Yes | Secret key containing the password. |
| Persistence | persistence.size | No | PVC size for /var/ces/config. |
| Persistence | persistence.storageClassName | No | StorageClass of the PVC. |
| Resources | resources.requests.cpu | Recommended | CPU request of the LDAP mapper container. |
| Resources | resources.requests.memory | Recommended | Memory request of the LDAP mapper container. |
| Resources | resources.limits.memory | Recommended | Memory limit of the LDAP mapper container. |
| Scheduling | nodeSelector | No | Node selector that the LDAP mapper pods are constrained to. |
| Scheduling | affinity | No | Pod affinity/anti-affinity configuration. |
| Scheduling | tolerations | No | Pod tolerations for taints. |
| Extension | extraEnv | No | Additional container environment variables. |
| Extension | extraEnv | No | Additional container environment variables. |
| Extension | extraVolumes | No | Extra volumes that are added to the pod spec. |
| Extension | extraVolumeMounts | No | Mount points for the volumes defined in extraVolumes. |
| Extension | extraLabels | No | Additional labels merged into every resource’s metadata. |
Backend Secret Behavior
- The backend secret is only referenced by the chart.
- The LDAP mapper only starts meaningfully if host, port, and secret match each other.
- For the internal LDAP component setup, the defaults are:
configuration.backend.type=embeddedconfiguration.backend.host=lop-idp-ldapconfiguration.backend.port=389secretRefs.backendLdap.name=lop-idp-ldap-ldap-mapper-sa
Persistence Behavior
- Local LDAP mapper service accounts are stored in
/var/ces/config/service_accounts.yaml. - A PVC is always used for
/var/ces/config. - This allows local service accounts to survive pod restarts and regular rollouts.
5. Example Overrides
Example 1: Internal LOP IdP LDAP
configuration:
backend:
type: embedded
host: lop-idp-ldap
port: "389"
secretRefs:
backendLdap:
name: lop-idp-ldap-ldap-mapper-sa
usernameKey: username
passwordKey: passwordExample 2: External LDAP
configuration:
backend:
type: external
host: ldap.example.org
port: "389"
mapping:
user:
base_dn: "ou=Users,dc=example,dc=org"
search_filter: "(objectclass=inetOrgPerson)"
group:
base_dn: "ou=Groups,dc=example,dc=org"
search_filter: "(objectclass=groupOfNames)"
secretRefs:
backendLdap:
name: external-ldap-mapper-bind
usernameKey: username
passwordKey: passwordExample 3: Mount host time configuration
Use extraVolumes, extraVolumeMounts and (optionally) extraEnv to mount the node’s /etc/timezone and /etc/localtime files into the container and keep the TZ variable in sync:
extraEnv:
- name: TZ
value: Europe/Berlin
extraVolumes:
- name: timezone
hostPath:
path: /etc/timezone
type: File
- name: localtime
hostPath:
path: /etc/localtime
type: File
extraVolumeMounts:
- name: timezone
mountPath: /etc/timezone
readOnly: true
- name: localtime
mountPath: /etc/localtime
readOnly: true6. Uninstallation
helm uninstall ldap-mapper --namespace ecosystemAlternatively:
make helm-deleteThe PVC is retained or deleted automatically depending on the StorageClass reclaim policy.
Last updated on 3/23/2026