ldap: custom schema can be passed with ldap_schema
This commit is contained in:
parent
1d7d45eb44
commit
0640a9f8fd
|
@ -75,3 +75,13 @@
|
||||||
command: slapadd -l /root/evolinux_ldap_first-entries.ldif
|
command: slapadd -l /root/evolinux_ldap_first-entries.ldif
|
||||||
when: not root_ldapvirc_path.stat.exists
|
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
|
||||||
|
|
Loading…
Reference in a new issue