library/roles/smartgears/r_connector: Fix the configuration of the ldap services.

This commit is contained in:
Andrea Dell'Amico 2017-03-17 19:47:20 +01:00
parent ea08934146
commit 637a420b6d
3 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,6 @@
passwd: compat ldap
group: compat
shadow: compat
shadow: compat ldap
hosts: files dns
networks: files

View File

@ -53,19 +53,27 @@
- name: Install the pam ldap configuration. We cannot use the debian tools, they are broken on ubuntu in non interactive mode
copy: src={{ item }} dest=/etc/pam.d/{{ item }}
with_items: '{{ r_connector_ldap_map_common }}'
notify: Restart the NSLCD service
notify:
- Restart the NSLCD service
- Restart the NSCD service
- name: Create the ldap-auth-config directory
file: dest=/etc/auth-client-config/profile.d state=directory
notify: Restart the NSLCD service
notify:
- Restart the NSLCD service
- Restart the NSCD service
- name: Install the ldap-auth-config file
copy: src=ldap-auth-config dest=/etc/auth-client-config/profile.d/ldap-auth-config
notify: Restart the NSLCD service
notify:
- Restart the NSLCD service
- Restart the NSCD service
- name: Install the nsswitch.conf file
copy: src=nsswitch.conf dest=/etc/nsswitch.conf
notify: Restart the NSLCD service
notify:
- Restart the NSLCD service
- Restart the NSCD service
- name: Install the nslcd configuration
template: src=nslcd.conf.j2 dest=/etc/nslcd.conf mode=0640 owner=root group=nslcd

View File

@ -31,3 +31,4 @@ tls_reqcert demand
# The search scope.
#scope sub
bind_timelimit 120