summaryrefslogtreecommitdiffstats
path: root/roles/LDAP-provider/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/LDAP-provider/tasks')
-rw-r--r--roles/LDAP-provider/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/LDAP-provider/tasks/main.yml b/roles/LDAP-provider/tasks/main.yml
new file mode 100644
index 0000000..64c8e30
--- /dev/null
+++ b/roles/LDAP-provider/tasks/main.yml
@@ -0,0 +1,12 @@
+- name: Copy the syncprov overlay configuration
+ copy: src=etc/ldap/syncprov.ldif
+ dest=/etc/ldap/fripost/syncprov.ldif
+ owner=root group=root
+ mode=0644
+
+- name: Load and configure the syncprov overlay
+ openldap: module=syncprov state=present
+ suffix=o=mailHosting,dc=fripost,dc=org
+ target=/etc/ldap/fripost/syncprov.ldif
+
+# TODO: authz constraint