diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 8aef6cbb..84c2e489 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -579,10 +579,11 @@ class CransLdap: auto_search_champs Si mode='w', les instances crées seront en mode d'écriture """ - - openlog('CransLdap.search') - syslog('(%s,%s) %s' % (script_utilisateur, mode, expression)) - closelog() + + if os.getuid() != 0: + openlog('CransLdap.search') + syslog('(%s,%s) %s' % (script_utilisateur, mode, expression)) + closelog() if type(expression) == str: # Transformation de l'expression en utf-8