Skip to content

Commit 396ac9b

Browse files
committed
ldif
1 parent a7dcdee commit 396ac9b

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

image/env.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LDAP_DOMAIN: example.org
88
LDAP_ADMIN_PASSWORD: admin
99
LDAP_CONFIG_PASSWORD: config
1010

11-
# TLS
11+
# tls
1212
LDAP_TLS: true
1313
LDAP_TLS_CRT_FILENAME: ldap.crt
1414
LDAP_TLS_KEY_FILENAME: ldap.key
@@ -23,7 +23,7 @@ LDAP_REPLICATION: false
2323
# adapt LDAP_REPLICATION_CONFIG_SYNCPROV and LDAP_REPLICATION_HDB_SYNCPROV to your configuration
2424
# avoid using $LDAP_BASE_DN, $LDAP_ADMIN_PASSWORD and $LDAP_CONFIG_PASSWORD variables
2525
LDAP_REPLICATION_CONFIG_SYNCPROV: binddn="cn=admin,cn=config" bindmethod=simple credentials=$LDAP_CONFIG_PASSWORD searchbase="cn=config" type=refreshAndPersist retry="5 5 300 5" timeout=1 starttls=critical
26-
LDAP_REPLICATION_HDB_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="5 5 300 5" timeout=1 starttls=critical
26+
LDAP_REPLICATION_HDB_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="5 5 300 5" timeout=1 starttls=critical
2727
LDAP_REPLICATION_HOSTS:
2828
- ldap://ldap.example.org # The order must be the same on all ldap servers
2929
- ldap://ldap2.example.org

image/service/slapd/assets/config/bootstrap/ldif/02-security.ldif

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ changetype: modify
33
delete: olcAccess
44
-
55
add: olcAccess
6-
olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by dn="cn=admin,{{ LDAP_BASE_DN }}" write by anonymous auth by * none
7-
-
8-
add: olcAccess
9-
olcAccess: {1}to * by self write by dn="cn=admin,{{ LDAP_BASE_DN }}" write by * none
10-
-
6+
olcAccess: to attrs=userPassword,shadowLastChange by self write by dn="cn=admin,{{ LDAP_BASE_DN }}" write by anonymous auth by * none
7+
olcAccess: to * by self write by dn="cn=admin,{{ LDAP_BASE_DN }}" write by * none

image/service/slapd/assets/config/bootstrap/ldif/04-index.ldif

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ dn: olcDatabase={1}hdb,cn=config
33
changetype: modify
44
replace: olcDbIndex
55
olcDbIndex: uid eq
6+
olcDbIndex: mail eq
67
olcDbIndex: memberOf eq
78
olcDbIndex: entryCSN eq
89
olcDbIndex: entryUUID eq

image/service/slapd/assets/config/readonly-user/readonly-user-acl.ldif

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ changetype: modify
33
delete: olcAccess
44
-
55
add: olcAccess
6-
olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by dn="cn=admin,{{ LDAP_BASE_DN }}" write by anonymous auth by * none
7-
-
8-
add: olcAccess
9-
olcAccess: {1}to * by self write by dn="cn=admin,{{ LDAP_BASE_DN }}" write by dn="cn={{ LDAP_READONLY_USERNAME }},{{ LDAP_BASE_DN }}" read by * none
10-
-
6+
olcAccess: to attrs=userPassword,shadowLastChange by self write by dn="cn=admin,{{ LDAP_BASE_DN }}" write by anonymous auth by * none
7+
olcAccess: to * by self write by dn="cn=admin,{{ LDAP_BASE_DN }}" write by dn="cn={{ LDAP_READONLY_USERNAME }},{{ LDAP_BASE_DN }}" read by * none

image/service/slapd/assets/config/tls/tls-enable.ldif

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ changetype: modify
33
replace: olcTLSCipherSuite
44
olcTLSCipherSuite: SECURE256:-VERS-SSL3.0
55
-
6+
replace: olcTLSProtocolMin
7+
olcTLSProtocolMin: 3.1
8+
-
69
replace: olcTLSCACertificateFile
710
olcTLSCACertificateFile: /container/service/slapd/assets/certs/{{ LDAP_TLS_CA_CRT_FILENAME }}
811
-

0 commit comments

Comments
 (0)