ldap: custom schema can be passed with ldap_schema
This commit is contained in:
parent
1d7d45eb44
commit
0640a9f8fd
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue