88 lines
2.5 KiB
Django/Jinja
88 lines
2.5 KiB
Django/Jinja
#######################################################################
|
|
# Modules
|
|
#######################################################################
|
|
|
|
include /etc/openldap/schema/core.schema
|
|
include /etc/openldap/schema/cosine.schema
|
|
include /etc/openldap/schema/corba.schema
|
|
include /etc/openldap/schema/inetorgperson.schema
|
|
include /etc/openldap/schema/nis.schema
|
|
include /etc/openldap/schema/collective.schema
|
|
include /etc/openldap/schema/openldap.schema
|
|
|
|
modulepath /usr/lib/openldap
|
|
moduleload back_mdb
|
|
moduleload refint
|
|
moduleload memberof
|
|
|
|
|
|
#######################################################################
|
|
# Core
|
|
#######################################################################
|
|
|
|
pidfile /var/slapd/slapd.pid
|
|
argsfile /var/slapd/slapd.args
|
|
loglevel conns
|
|
|
|
serverID 0
|
|
|
|
|
|
#######################################################################
|
|
# Security
|
|
#######################################################################
|
|
|
|
#TLSCACertificateFile /var/slapd/fullchain.pem
|
|
TLSCertificateFile /var/slapd/cert.pem
|
|
TLSCertificateKeyFile /var/slapd/key.pem
|
|
TLSCipherSuite HIGH
|
|
|
|
# Sample security restrictions
|
|
# Define global ACLs to disable default read access.
|
|
# Require integrity protection (prevent hijacking)
|
|
# Require 112-bit (3DES or better) encryption for updates
|
|
# Require 63-bit encryption for simple bind
|
|
security ssf=1 simple_bind=256 update_ssf=256
|
|
|
|
|
|
#######################################################################
|
|
# MDB database definitions
|
|
#######################################################################
|
|
|
|
database mdb
|
|
maxsize 1073741824
|
|
suffix "{{ base_dn }}"
|
|
|
|
# Overlays to be loaded for the database.
|
|
overlay memberof
|
|
|
|
# Cleartext passwords, especially for the rootdn, should
|
|
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
|
|
# Use of strong authentication encouraged.
|
|
rootdn "cn=root,{{ base_dn }}"
|
|
rootpw {{ root_password }}
|
|
|
|
# The database directory MUST exist prior to running slapd AND
|
|
# should only be accessible by the slapd and slap tools.
|
|
# Mode 700 recommended.
|
|
directory /var/slapd
|
|
mode 0700
|
|
|
|
password-hash {CRYPT}
|
|
password-crypt-salt-format "$6$%.16s"
|
|
|
|
# Indices to maintain
|
|
index objectClass pres,eq
|
|
index uid,cn,sn,mail eq,sub
|
|
index memberof pres,eq
|
|
|
|
|
|
#######################################################################
|
|
# MemberOf configuration
|
|
#######################################################################
|
|
|
|
memberof-group-oc groupOfNames
|
|
memberof-memberof-ad memberOf
|
|
memberof-member-ad member
|
|
memberof-dangling error
|
|
memberof-refint true
|