ldap: fix domain and cn

This commit is contained in:
Victor LABORIE 2017-11-06 17:26:24 +01:00
parent 6d2506a0ce
commit c0c7183605
2 changed files with 5 additions and 6 deletions

View file

@ -1,5 +1,4 @@
---
ldap_domain: "{{ ansible_fqdn }}"
ldap_organization: "{{ ansible_domain }}"
ldap_suffix: "dc=example,dc=com"
ldap_suffix_dc: "example"
ldap_hostname: "{{ ansible_hostname }}"
ldap_domain: "{{ ansible_domain }}"
ldap_suffix: "dc={{ ldap_hostname }},dc={{ ldap_domain.split('.')[-2] }},dc={{ ldap_domain.split('.')[-1] }}"

View file

@ -2,8 +2,8 @@ dn: {{ ldap_suffix }}
objectClass: top
objectClass: dcObject
objectClass: organization
o: {{ ldap_suffix_dc }}
dc: {{ ldap_suffix_dc }}
o: {{ ldap_domain }}
dc: {{ ldap_hostname }}
dn: cn=admin,{{ ldap_suffix }}
objectClass: simpleSecurityObject