ldap: custom schema can be passed with ldap_schema

This commit is contained in:
Victor LABORIE 2017-10-10 16:12:08 +02:00
parent 1d7d45eb44
commit 0640a9f8fd

View file

@ -75,3 +75,13 @@
command: slapadd -l /root/evolinux_ldap_first-entries.ldif
when: not root_ldapvirc_path.stat.exists
- name: upload custom schema
copy:
src: "{{ ldap_schema }}"
dest: "/root/{{ ldap_schema }}"
mode: "0640"
when: ldap_schema is defined
- name: inject custom schema
command: "ldapadd -Y EXTERNAL -H ldapi:/// -f /root/{{ ldap_schema }}"
when: ldap_schema is defined