openldap-stack-ha

by jp-gouin

Helm chartv4.3.3App 2.6.9Apache-2.0Verified publisher

Community developed LDAP software

About this chart

OpenLDAP Helm Chart

Disclaimer

This version now use the Bitnami Openldap container image.

More detail on the container image can be found here

The chart now support Bitnami/Openldap 2.x.

Due to #115, the chart does not fully support scaling the openldap cluster. To scale the cluster please follow scaling your cluster

  • This will be fixed in priority

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

Now provide read-only feature ! more details

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.

ParameterDescriptionDefault
global.imageRegistryGlobal image registry""
global.imagePullSecretsGlobal list of imagePullSecrets[]
global.ldapDomainDomain LDAP can be explicit dc=example,dc=org or domain based example.orgexample.org
global.existingSecretUse existing secret for credentials - the expected keys are LDAP_ADMIN_PASSWORD and LDAP_CONFIG_ADMIN_PASSWORD""
global.adminUserOpenldap database admin useradmin
global.adminPasswordAdministration password of OpenldapNot@SecurePassw0rd
global.configUserOpenldap configuration admin useradmin
global.configPasswordConfiguration password of OpenldapNot@SecurePassw0rd
global.ldapPortLdap port389
global.sslLdapPortLdaps port636

Application parameters

Parameters related to the configuration of the application.

ParameterDescriptionDefault
replicaCountNumber of replicas3
readOnlyReplicaCountNumber of read-only replicas0
usersUser list to create (comma separated list) , can't be use with customLdifFiles""
userPasswordsUser password to create (comma seprated list)""
groupGroup to create and add list of user above""
envList 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_enabledSet to enable TLS/LDAPS with custom certificate - Please also set initTLSSecret.secret, otherwise it will not take effectfalse
initTLSSecret.secretSecret containing TLS cert and key must contain the keys tls.key , tls.crt and ca.crt""
initialSchemaSchemas to initialise the 'LDAP_EXTRA_SCHEMAS' env var"cosine,inetorgperson,nis"
customSchemaFilesCustom openldap schema files used in addition to default schemas""
customLdifFilesCustom openldap configuration files used to override default settings""
customLdifCmExisting configmap with custom ldif. Can't be use with customLdifFiles""
customAclsCustom openldap ACLs. Overrides default ones.""
replication.enabledEnable the multi-master replicationtrue
replication.retryretry period for replication in sec60
replication.timeouttimeout for replication in sec1
replication.starttlsstarttls replicationcritical
replication.tls_reqcertoverride the tls_reqcert parameter (default if never and demand when initTLSSecret.tls_enabled = true )never
replication.tls_cacertoverride the location of tls_cacert to trust (allowed when initTLSSecret.tls_enabled = true )nil
replication.intervalinterval for replication00:00:00:10
replication.clusterNameSet the clustername for replication"cluster.local"

Phpladadmin configuration

Parameters related to PHPLdapAdmin

ParameterDescriptionDefault
phpldapadmin.enabledEnable the deployment of PhpLdapAdmintrue
phpldapadmin.ingressIngress of Phpldapadmin{}
phpldapadmin.envEnvironment 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.

ParameterDescriptionDefault
ltb-passwd.enabledEnable the deployment of Ltb-Passwdtrue
ltb-passwd.ingressIngress 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.

ParameterDescriptionDefault
updateStrategyStatefulSet update strategy{}
kubeVersionkubeVersion Override Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverridefullnameOverride String to fully override common.names.fullname""
commonLabelscommonLabels Labels to add to all deployed objects{}
clusterDomainclusterDomain Kubernetes cluster domain namecluster.local
extraDeployextraDeploy Array of extra objects to deploy with the release""
service.annotationsAnnotations to add to the service{}
service.externalIPsService external IP addresses[]
service.enableLdapPortEnable LDAP port on the service and headless servicetrue
service.enableSslLdapPortEnable SSL LDAP port on the service and headless servicetrue
service.ldapPortNodePortNodeport of External service port for LDAP if service.type is NodePortnil
service.clusterIPStatic cluster IP to assign to the service (if supported)nil
service.loadBalancerIPIP address to assign to load balancer (if supported)""
service.loadBalancerSourceRangesList of IP CIDRs allowed access to load balancer (if supported)[]
service.sslLdapPortNodePortNodeport of External service port for SSL if service.type is NodePortnil

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartopenldap-stack-ha is pinned at v4.3.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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