openldap
by Symas
The OpenLDAP directory server, with support from Symas Corp.
About this chart
Supported OpenLDAP Helm Chart by Symas Corp
TL;DR
To install the chart with the release name my-release:
$ helm repo add helm-openldap https://symas.github.io/helm-openldap/
$ helm install my-release helm-openldap/openldap
What's here?
A Helm cart to deploy and manage your OpenLDAP instance on Kubernetes provided by Symas, ready for production use.
How to contact Symas for commercial support
This Helm chart packages the Symas OpenLDAP container. For general help on OpenLDAP please take a look at our knowledge base, or go to the OpenLDAP site and read the documentation, the quick start guide, and the detailed manual pages. What we publish is what we provide to you in this format to help you adopt and use OpenLDAP. As always, everything is open-source.
If you need help, please contact us at: +1.650.963.7601 or email sales or send mail to our support teams directly with questions. More on our support offerings can be found on our website.
Reach out to us, we're here to help.
Why use our OpenLDAP chart?
- Symas has, for over a decade, built, maintained, and commercially supported the OpenLDAP codebase.
- All our work on OpenLDAP has always been, and will always be open-source. We are a commercial support company, here if and when you need us.
- We commit to promptly publish new versions of this chart for every release of the software going forward.
- Our images contain the latest bug fixes and features released, not just in OpenLDAP but in supporting libraries.
- We've based our chart on the existing jp-gouin chart that uses the Bitnami containers having recently changed from the abandoned Osixia OpenLDAP containers.
- We'd like to thank Jean-Philippe Gouin for open sourcing his work allowing the community to benefit. Our shared philosophy makes us stronger.
Why not just contribute to Jean-Philippe's exiting chart?
We may eventually merge our work into his, for now we'd like to remain on a fork that we provide and support for our customers that is under our direct control.
Fundamentally, we're a company that supports OpenLDAP as our primary business model so it is important for us to own this Helm chart allowing for easy deployent of OpenLDAP within Kubernetes clusters.
- Replication is 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 to load during setup via thecustomSchemaFilesoption.
A default tree (Root Organization, 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 organization.
Prerequisites
- Kubernetes 1.8+
- Persistent Volume (PV) support on the underlying infrastructure
Chart Details:
This chart will:
- Create 3 instances of OpenLDAP server with multi-master replication.
- Install and configure a single pod running phpldapadmin using the Osixia container, an admin web-GUI for OpenLDAP.
- Install and configure ltb-passwd using the Tired of It container for self-service password changes.
Symas Packaged OpenLDAP
We, at Symas, contribute to and maintain the OpenLDAP software as open source software. We work within the community of contributors to this project, that's how open source works. We don't sell licenses to the software, the software is free for anyone to use. We do provide commercial support for OpenLDAP, and in that capacity we've run across bugs that others may not have encountered. We fix those issues and contribute them back to OpenLDAP through the community process. Sometimes we find bugs impacting OpenLDAP in supporting libraries, and in those cases we fix those issues and offer them to the package maintainers. When that process isn't fast enough, we apply our fixes to a fork of the package and include that within our package of OpenLDAP. When that fix is upstreamed and released, we return to using the community provided library. All that is to say that it is possible that the Symas supplied packages include fixes that are not available in other builds of OpenLDAP unless those builds included our forks of those dependencies.
In addition, Symas sometimes includes packages or configuration by default that we've found useful to our customers. For instances, this Helm chart includes lib-passwd which is a web-based self-service password management application developed by the Linux toolbox Project. It has some nice features useful when administering OpenLDAP. Ppm is a password complexity module for OpenLDAP, it also comes password management features, but the only overlap between Ppm and lib-passwd is that they both can enforce password complexity rules, albeit in different ways. So, with this release of OpenLDAP you get the best of both worlds.
Configuration
We use the Symas provided container image forked from, and compatible with, the Bitnami OpenLDAP container. Please consult to documentation of the image for more information.
The following table lists the configurable parameters of the symas/openldap
with 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 | 1389 |
global.sslLdapPort | Ldaps port | 1636 |
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 | Environment variables as a list of key value pairs available within the container. | [see values.yaml] |
initTLSSecret.tls_enabled | Set to enable TLS/LDAPS with custom certificate - should also set tls.secret | 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 | Enable 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" |
PHPLdapAdmin 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 LDAP Tool Box Self Service Password.
| Parameter | Description | Default
Deploy openldap with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openldap 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 is pinned at v1.1.7 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