From 6946ee56274fb9b12561e32cc600b3ef05188e95 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 16 May 2013 18:51:49 +0200 Subject: [PATCH] =?UTF-8?q?[firewall4,populate=5FsshFingerprint]=20Plut?= =?UTF-8?q?=C3=B4t=20que=20de=20s'annoncer=20en=20'root',=20on=20pr=C3=A9c?= =?UTF-8?q?ise=20un=20user=20qui=20permet=20de=20savoir=20quel=20script=20?= =?UTF-8?q?acc=C3=A8s=20=C3=A0=20la=20base.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour firewall, en fait on s'en fout parce qu'il fait pas d'écriture, mais on laisse le binding en admin parce que les transactions sont plus rapides et qu'il en fait mâss. --- gestion/gen_confs/firewall4.py | 2 +- gestion/gen_confs/populate_sshFingerprint.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/gen_confs/firewall4.py b/gestion/gen_confs/firewall4.py index b2842fb2..d85f4252 100755 --- a/gestion/gen_confs/firewall4.py +++ b/gestion/gen_confs/firewall4.py @@ -208,7 +208,7 @@ class firewall_base(object) : sys.exit(1) # Connection à la base ldap - conn = lc_ldap.shortcuts.lc_ldap_admin() + conn = lc_ldap.shortcuts.lc_ldap_admin(user=u'firewall') self.reloadable = { 'blacklist_hard' : self.blacklist_hard, diff --git a/gestion/gen_confs/populate_sshFingerprint.py b/gestion/gen_confs/populate_sshFingerprint.py index bd640566..a171a386 100755 --- a/gestion/gen_confs/populate_sshFingerprint.py +++ b/gestion/gen_confs/populate_sshFingerprint.py @@ -16,7 +16,7 @@ sys.path.append('/etc/crans/secrets/') import lc_ldap.shortcuts import config -conn = lc_ldap.shortcuts.lc_ldap_admin() +conn = lc_ldap.shortcuts.lc_ldap_admin(user=u'sshfingerprint') ssh_algo = config.sshfp_algo.keys()