slapd: make compatiable with Debian 12

This commit is contained in:
Markus 2023-09-20 22:38:24 +02:00
parent 6bf772b761
commit 58c875c4dc
4 changed files with 7 additions and 4 deletions

View File

@ -3,4 +3,5 @@
radius_hostname: radius3.binary.kitchen radius_hostname: radius3.binary.kitchen
slapd_hostname: ldap3.binary.kitchen slapd_hostname: ldap3.binary.kitchen
slapd_replica_id: 3
slapd_role: slave slapd_role: slave

View File

@ -3,4 +3,5 @@
radius_hostname: radius2.binary.kitchen radius_hostname: radius2.binary.kitchen
slapd_hostname: ldap2.binary.kitchen slapd_hostname: ldap2.binary.kitchen
slapd_replica_id: 2
slapd_role: slave slapd_role: slave

View File

@ -13,4 +13,5 @@ ntp_peers:
radius_hostname: radius1.binary.kitchen radius_hostname: radius1.binary.kitchen
slapd_hostname: ldap1.binary.kitchen slapd_hostname: ldap1.binary.kitchen
slapd_replica_id: 1
slapd_role: slave slapd_role: slave

View File

@ -30,7 +30,7 @@ loglevel sync
# Load dynamic backend modules: # Load dynamic backend modules:
modulepath /usr/lib/ldap modulepath /usr/lib/ldap
moduleload back_hdb.la moduleload back_mdb.la
{% if slapd_role == 'master' %} {% if slapd_role == 'master' %}
moduleload syncprov.la moduleload syncprov.la
{% endif %} {% endif %}
@ -97,10 +97,10 @@ TLSVerifyClient never
####################################################################### #######################################################################
# BDB database definitions # MDB database definitions
####################################################################### #######################################################################
database hdb database mdb
suffix "{{ ldap_base }}" suffix "{{ ldap_base }}"
# <kbyte> <min> # <kbyte> <min>
checkpoint 32 30 checkpoint 32 30
@ -157,7 +157,7 @@ smbk5pwd-must-change 0
# Replication Consumer # Replication Consumer
####################################################################### #######################################################################
syncrepl rid=1 syncrepl rid={{ slapd_replica_id }}
provider="ldaps://ldapm.binary.kitchen" provider="ldaps://ldapm.binary.kitchen"
searchbase="{{ ldap_base }}" searchbase="{{ ldap_base }}"
type=refreshAndPersist type=refreshAndPersist