From bd4e53314d2daa52d5a6649a4912b8d36e45424b Mon Sep 17 00:00:00 2001 From: Iraq <66622793+kkrime@users.noreply.github.com> Date: Wed, 12 Feb 2025 15:50:56 +0000 Subject: [PATCH] doc: Updating LDAP config documentation (#9303) # Which Problems Are Solved Adding `docker-compose` setup to [docs/docs/guides/integrate/identity-providers/openldap.mdx](https://github.com/zitadel/zitadel/compare/ldap_doc?expand=1#diff-6105dfa1b0b954ae5a6c914edaa6912715a1bba75bf75b1a722043edb8d429f9) --------- Co-authored-by: Iraq Jaber Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com> --- .../integrate/identity-providers/openldap.mdx | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/docs/guides/integrate/identity-providers/openldap.mdx b/docs/docs/guides/integrate/identity-providers/openldap.mdx index 36c7ac06d..efba37fe9 100644 --- a/docs/docs/guides/integrate/identity-providers/openldap.mdx +++ b/docs/docs/guides/integrate/identity-providers/openldap.mdx @@ -34,7 +34,35 @@ Otherwise, your users passwords are sent in clear text through the wire. ### Basic configuration -To run LDAP locally to test it with ZITADEL please refer to [OpenLDAP](https://www.openldap.org/) with [slapd](https://www.openldap.org/software/man.cgi?query=slapd). +You can run OpenLdap via `docker-compose` using the following: +``` +version: '2' + +networks: + my-network: + driver: bridge +services: + openldap: + image: bitnami/openldap:latest + ports: + - '389:1389' + environment: + - LDAP_ADMIN_USERNAME=admin + - LDAP_ADMIN_PASSWORD=Password1! + - LDAP_USERS=test + - LDAP_PASSWORDS=Password1! + - LDAP_ROOT=dc=example,dc=com + - LDAP_ADMIN_DN=cn=admin,dc=example,dc=com + networks: + - my-network + volumes: + - 'openldap_data:/bitnami/openldap' +volumes: + openldap_data: + driver: local +```` + +Alternatively, you can run LDAP locally. To run LDAP locally to test it with ZITADEL please refer to [OpenLDAP](https://www.openldap.org/) with [slapd](https://www.openldap.org/software/man.cgi?query=slapd). For a quickstart guide please refer to their [official documentation](https://www.openldap.org/doc/admin22/quickstart.html).