xoxys.ldap_proxy/templates/etc/openldap/slapd.conf.j2

54 lines
2.2 KiB
Plaintext
Raw Normal View History

2018-12-01 00:31:11 +00:00
#jinja2: lstrip_blocks: True
# {{ ansible_managed }}
### Schema includes ###########################################################
include /etc/openldap/schema/corba.schema
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/duaconf.schema
include /etc/openldap/schema/dyngroup.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/java.schema
include /etc/openldap/schema/misc.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/openldap.schema
include /etc/openldap/schema/ppolicy.schema
include /etc/openldap/schema/collective.schema
2018-12-12 21:11:55 +00:00
{% for schema in ldap_proxy_custom_schemas %}
2018-12-12 21:20:02 +00:00
include /etc/openldap/schema/{{ schema | basename }}
2018-12-12 21:18:14 +00:00
{% endfor %}
2018-12-01 00:31:11 +00:00
## Module paths ##############################################################
modulepath /usr/lib64/openldap/
modulepath /usr/lib64/openldap
moduleload back_ldap
moduleload rwm
2018-12-02 01:21:16 +00:00
moduleload memberof.la
2018-12-01 00:31:11 +00:00
# Main settings ###############################################################
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
TLSCertificateFile {{ ldap_proxy_tls_cert_path }}
TLSCertificateKeyFile {{ ldap_proxy_tls_key_path }}
TLSCACertificateFile {{ ldap_proxy_tls_ca_path }}
TLSCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!RC4
TLSProtocolMin 3.1
### Database definition (Proxy to AD) #########################################
database ldap
{% if ldap_proxy_readonly_enabled %}
readonly yes
{% endif %}
lastmod off
rebind-as-user
uri "{{ ldap_proxy_server }}"
suffix "{{ ldap_proxy_server_suffix }}"
2018-12-02 01:21:16 +00:00
overlay memberof
2018-12-01 14:51:13 +00:00
### ACL definition ############################################################
2018-12-01 14:33:37 +00:00
include "{{ ldap_proxy_acl_file }}"
2018-12-01 00:31:11 +00:00
### Logging ###################################################################
loglevel {{ ldap_proxy_loglevel }}