From dfb995e958e41c4b9883571a13385346c14c53b8 Mon Sep 17 00:00:00 2001 From: shirenn <shirenn@crans.org> Date: Sun, 17 Jan 2021 22:31:12 +0100 Subject: [PATCH] [ldap] Petit nettoyage --- group_vars/all/vars.yaml | 1 - roles/ldap-client/templates/nslcd.conf.j2 | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/group_vars/all/vars.yaml b/group_vars/all/vars.yaml index fcba6e46..b1ef1c5a 100644 --- a/group_vars/all/vars.yaml +++ b/group_vars/all/vars.yaml @@ -55,7 +55,6 @@ glob_ldap: - 172.16.10.12 - 172.16.10.13 base: 'dc=crans,dc=org' - local: false # local configuration but default value home_nounous: ip: 172.16.10.1 diff --git a/roles/ldap-client/templates/nslcd.conf.j2 b/roles/ldap-client/templates/nslcd.conf.j2 index aa1db15f..59c05d1b 100644 --- a/roles/ldap-client/templates/nslcd.conf.j2 +++ b/roles/ldap-client/templates/nslcd.conf.j2 @@ -8,7 +8,7 @@ uid nslcd gid nslcd # The location at which the LDAP server(s) should be reachable. -{% if ldap.local %} +{% if 'ldap_server' in group_names %} uri ldapi:/// {% else %} {% for server in ldap.servers %} -- GitLab