-
Notifications
You must be signed in to change notification settings - Fork 0
/
slapd.ldif.j2
34 lines (29 loc) · 1.04 KB
/
slapd.ldif.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{# vim: filetype=ldif.jinja2 #}
dn: cn=config
objectClass: olcGlobal
cn: config
{% if ansible_facts['os_family'] != 'Alpine' %}
olcArgsFile: {{ openldap_server_runtime_path }}/slapd.args
olcPidFile: {{ openldap_server_runtime_path }}/slapd.pid
{% endif %}
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
{% for schema in openldap_server_schemas %}
include: file://{{ openldap_server_schema_path }}/{{ schema }}.ldif
{% endfor %}
dn: olcDatabase=frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: frontend
olcAccess: to * by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage by * break
olcAccess: to dn.exact="" by * read
olcAccess: to dn.base="cn=Subschema" by * read
dn: olcDatabase=config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: config
olcAccess: to * by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage by * break
dn: cn=module{0},cn=config
objectClass: olcModuleList
cn: module{0}
olcModulePath: "{{ openldap_server_module_path }}"