aboutsummaryrefslogtreecommitdiffstats
path: root/roles/ldapd/templates/etc-ldapd.conf.j2
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-07-29 17:00:20 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-07-29 17:00:20 +0200
commitb232b894c3cbe087c8d504e91637dcf62199eed1 (patch)
treeea72a7d1a7f63c6425ee46785e1cec924351b2c3 /roles/ldapd/templates/etc-ldapd.conf.j2
parent22126073344e60c405d086df37b64da0c6d3c086 (diff)
downloadold-infrastructure-b232b894c3cbe087c8d504e91637dcf62199eed1.tar.gz
Bump to third revision of homelab
Diffstat (limited to 'roles/ldapd/templates/etc-ldapd.conf.j2')
-rw-r--r--roles/ldapd/templates/etc-ldapd.conf.j223
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/ldapd/templates/etc-ldapd.conf.j2 b/roles/ldapd/templates/etc-ldapd.conf.j2
new file mode 100644
index 0000000..e08fa9c
--- /dev/null
+++ b/roles/ldapd/templates/etc-ldapd.conf.j2
@@ -0,0 +1,23 @@
+
+# ldapd configuration
+# manage by Ansible
+
+schema "/etc/ldap/core.schema"
+schema "/etc/ldap/inetorgperson.schema"
+schema "/etc/ldap/nis.schema"
+schema "/etc/ldap/bsd.schema"
+
+{% for interface in ansible_interfaces %}
+{% if "pflog" not in interface %}
+listen on {{ interface }}
+{% endif %}
+{% endfor %}
+listen on "/var/run/ldapi"
+
+namespace "dc=domain" {
+ rootdn "cn=admin,dc=domain"
+
+ deny read,write access to subtree root by any
+ allow read,write access to subtree root by self
+
+}
remember that computers suck.