Skip to content

Commit 990b9c6

Browse files
committed
update example with new variables and fix docker-compose
1 parent 13ac853 commit 990b9c6

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

example/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313
LDAP_READONLY_USER: "false"
1414
#LDAP_READONLY_USER_USERNAME: "readonly"
1515
#LDAP_READONLY_USER_PASSWORD: "readonly"
16+
LDAP_RFC2307BIS_SCHEMA: "false"
1617
LDAP_BACKEND: "hdb"
1718
LDAP_TLS: "true"
1819
LDAP_TLS_CRT_FILENAME: "ldap.crt"
@@ -26,6 +27,7 @@ services:
2627
#LDAP_REPLICATION_CONFIG_SYNCPROV: "binddn="cn=admin,cn=config" bindmethod=simple credentials=$LDAP_CONFIG_PASSWORD searchbase="cn=config" type=refreshAndPersist retry="60 +" timeout=1 starttls=critical"
2728
#LDAP_REPLICATION_DB_SYNCPROV: "binddn="cn=admin,$LDAP_BASE_DN" bindmethod=simple credentials=$LDAP_ADMIN_PASSWORD searchbase="$LDAP_BASE_DN" type=refreshAndPersist interval=00:00:00:10 retry="60 +" timeout=1 starttls=critical"
2829
#LDAP_REPLICATION_HOSTS: "#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']"
30+
KEEP_EXISTING_CONFIG: "false"
2931
LDAP_REMOVE_CONFIG_AFTER_SETUP: "true"
3032
LDAP_SSL_HELPER_PREFIX: "ldap"
3133
tty: true
@@ -37,6 +39,7 @@ services:
3739
ports:
3840
- "389:389"
3941
- "636:636"
42+
domainname: "example.org" # important: same as hostname
4043
hostname: "example.org"
4144
phpldapadmin:
4245
image: osixia/phpldapadmin:latest

example/kubernetes/simple/ldap-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ spec:
4141
value: "readonly"
4242
- name: LDAP_READONLY_USER_PASSWORD
4343
value: "readonly"
44+
- name: LDAP_RFC2307BIS_SCHEMA
45+
value: "false"
4446
- name: LDAP_BACKEND
4547
value: "hdb"
4648
- name: LDAP_TLS
@@ -65,6 +67,8 @@ spec:
6567
value: "binddn=\"cn=admin,$LDAP_BASE_DN\" bindmethod=simple credentials=$LDAP_ADMIN_PASSWORD searchbase=\"$LDAP_BASE_DN\" type=refreshAndPersist interval=00:00:00:10 retry=\"60 +\" timeout=1 starttls=critical"
6668
- name: LDAP_REPLICATION_HOSTS
6769
value: "#PYTHON2BASH:['ldap://ldap-one-service', 'ldap://ldap-two-service']"
70+
- name: KEEP_EXISTING_CONFIG
71+
value: "false"
6872
- name: LDAP_REMOVE_CONFIG_AFTER_SETUP
6973
value: "true"
7074
- name: LDAP_SSL_HELPER_PREFIX

example/kubernetes/using-secrets/environment/my-env.startup.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ LDAP_READONLY_USER: false
1818
LDAP_READONLY_USER_USERNAME: readonly
1919
LDAP_READONLY_USER_PASSWORD: readonly
2020

21+
LDAP_RFC2307BIS_SCHEMA: false
22+
2123
# Backend
2224
LDAP_BACKEND: hdb
2325

@@ -46,6 +48,12 @@ LDAP_REPLICATION_HOSTS:
4648
- ldap://ldap2.example.org
4749

4850

51+
# Do not change the ldap config
52+
# - If set to true with an existing database, config will remain unchanged. Image tls and replication config will not be run.
53+
# The container can be started with LDAP_ADMIN_PASSWORD and LDAP_CONFIG_PASSWORD empty or filled with fake data.
54+
# - If set to true when bootstrapping a new database, bootstap ldif and schema will not be added and tls and replication config will not be run.
55+
KEEP_EXISTING_CONFIG: false
56+
4957
# Remove config after setup
5058
LDAP_REMOVE_CONFIG_AFTER_SETUP: true
5159

0 commit comments

Comments
 (0)