Browse Source

pouvoir démarrer z_stats sans creoled (ref #14547)

2.5.2/master
Emmanuel Garette 3 years ago
parent
commit
b34f3df3ac
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      zephir/srv/20_ldap.srv

+ 3
- 2
zephir/srv/20_ldap.srv View File

@@ -4,9 +4,10 @@ Surveillance d'OpenLdap
4 4
 """
5 5
 
6 6
 from zephir.monitor.agents.services import TCPServices
7
+from zephir.monitor.agentmanager.config import ACTIVER_CLIENT_LDAP_LOCAL, ADRESSE_IP_ANNUAIRE
7 8
 
8
-if DICO['activer_client_ldap'] == 'local':
9
-    adresse = DICO.get('adresse_ip_annuaire', '127.0.0.1')
9
+if ACTIVER_CLIENT_LDAP_LOCAL:
10
+    adresse = ADRESSE_IP_ANNUAIRE
10 11
     test = '%s:389' % adresse
11 12
     data = {test : "Annuaire d'authentification (LDAP)"}
12 13
     AGENTS.append(TCPServices('ldap', data, period=115,

Loading…
Cancel
Save