openldap-stack-ha
Community developed LDAP software
About this chart
OpenLDAP Helm Chart
Disclaimer
The OpenLDAP container image from Eclipse aeriOS has been built from the Bitnami Openldap container image.
More detail on the container image can be found here
There are some major changes between the Osixia version and the Bitnami version , ergo the major gap of the chart version.
- Upgrade may not work fine between
3.xand4.x - Ldap and Ldaps port are non privileged ports (
1389and1636) internally but are exposed throughglobal.ldapPortandglobal.sslLdapPort(389 and 636) - Replication is now purely setup by configuration. Extra schemas are loaded using
LDAP_EXTRA_SCHEMAS: "cosine,inetorgperson,nis,syncprov,serverid,csyncprov,rep,bsyncprov,brep,acls. You can add your own schemas via thecustomSchemaFilesoption.
A default tree (Root organisation, users and group) is created during startup, this can be skipped using LDAP_SKIP_DEFAULT_TREE , however you need to use customLdifFiles or customLdifCm to create a root organisation.
- This will be improved in a future update.
Prerequisites Details
- Kubernetes 1.8+
- PV support on the underlying infrastructure
Chart Details
This chart will do the following:
- Instantiate 3 instances of OpenLDAP server with multi-master replication
- A phpldapadmin to administrate the OpenLDAP server
- ltb-passwd for self service password
TL;DR
To install the chart with the release name my-release:
$ helm repo add helm-openldap https://jp-gouin.github.io/helm-openldap/
$ helm install my-release helm-openldap/openldap-stack-ha
Configuration
We use the container images provided by https://github.com/bitnami/containers/tree/main/bitnami/openldap. The container image is highly configurable and well documented. Please consult to documentation of the image for more information.
The following table lists the configurable parameters of the openldap chart and their default values.
Global section
Global parameters to configure the deployment of the application.
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global image registry | "" |
global.imagePullSecrets | Global list of imagePullSecrets | [] |
global.ldapDomain | Domain LDAP can be explicit dc=example,dc=org or domain based example.org | example.org |
global.existingSecret | Use existing secret for credentials - the expected keys are LDAP_ADMIN_PASSWORD and LDAP_CONFIG_ADMIN_PASSWORD | "" |
global.adminUser | Openldap database admin user | admin |
global.adminPassword | Administration password of Openldap | Not@SecurePassw0rd |
global.configUserEnabled | Whether to create a configuration admin user | true |
global.configUser | Openldap configuration admin user | admin |
global.configPassword | Configuration password of Openldap | Not@SecurePassw0rd |
global.ldapPort | Ldap port | 389 |
global.sslLdapPort | Ldaps port | 636 |
Application parameters
Parameters related to the configuration of the application.
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of replicas | 3 |
users | User list to create (comma separated list) , can't be use with customLdifFiles | "" |
userPasswords | User password to create (comma seprated list) | "" |
group | Group to create and add list of user above | "" |
env | List of key value pairs as env variables to be sent to the docker image. See https://github.com/bitnami/containers/tree/main/bitnami/openldap for available ones | [see values.yaml] |
initTLSSecret.tls_enabled | Set to enable TLS/LDAPS with custom certificate - Please also set initTLSSecret.secret, otherwise it will not take effect | false |
initTLSSecret.secret | Secret containing TLS cert and key must contain the keys tls.key , tls.crt and ca.crt | "" |
customSchemaFiles | Custom openldap schema files used in addition to default schemas | "" |
customLdifFiles | Custom openldap configuration files used to override default settings | "" |
customLdifCm | Existing configmap with custom ldif. Can't be use with customLdifFiles | "" |
customAcls | Custom openldap ACLs. Overrides default ones. | "" |
replication.enabled | Enable the multi-master replication | true |
replication.retry | retry period for replication in sec | 60 |
replication.timeout | timeout for replication in sec | 1 |
replication.starttls | starttls replication | critical |
replication.tls_reqcert | tls certificate validation for replication | never |
replication.interval | interval for replication | 00:00:00:10 |
replication.clusterName | Set the clustername for replication | "cluster.local" |
Phpladadmin configuration
Parameters related to PHPLdapAdmin
| Parameter | Description | Default |
|---|---|---|
phpldapadmin.enabled | Enable the deployment of PhpLdapAdmin | true |
phpldapadmin.ingress | Ingress of Phpldapadmin | {} |
phpldapadmin.env | Environment variables for PhpldapAdmin | {PHPLDAPADMIN_LDAP_CLIENT_TLS_REQCERT: "never"} |
For more advance configuration see README.md
For all possible chart parameters see chart's README.md
Self-service password configuration
Parameters related to Self-service password.
| Parameter | Description | Default |
|---|---|---|
ltb-passwd.enabled | Enable the deployment of Ltb-Passwd | true |
ltb-passwd.ingress | Ingress of the Ltb-Passwd service | {} |
For more advance configuration see README.md
For all possible parameters see chart's README.md
Kubernetes parameters
Parameters related to Kubernetes.
| Parameter | Description | Default |
|---|---|---|
updateStrategy | StatefulSet update strategy | {} |
kubeVersion | kubeVersion Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | fullnameOverride String to fully override common.names.fullname | "" |
commonLabels | commonLabels Labels to add to all deployed objects | {} |
clusterDomain | clusterDomain Kubernetes cluster domain name | cluster.local |
extraDeploy | extraDeploy Array of extra objects to deploy with the release | "" |
service.annotations | Annotations to add to the service | {} |
service.externalIPs | Service external IP addresses | [] |
service.ldapPortNodePort | Nodeport of External service port for LDAP if service.type is NodePort | nil |
service.loadBalancerIP | IP address to assign to load balancer (if supported) | "" |
service.loadBalancerSourceRanges | List of IP CIDRs allowed access to load balancer (if supported) | [] |
service.sslLdapPortNodePort | Nodeport of External service port for SSL if service.type is NodePort | nil |
service.type | Service type can be ClusterIP, NodePort, LoadBalancer | ClusterIP |
persistence.enabled | Whether to use PersistentVolumes or not |
Deploy openldap-stack-ha with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openldap-stack-ha on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartopenldap-stack-ha is pinned at v4.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply