pschiffe / ipa-log-config

Tool for log forwarding configuration on IPA servers and clients
https://www.freeipa.org/page/Centralized_Logging
GNU General Public License v2.0
32 stars 14 forks source link

The script fails if audit is not installed #13

Open mikoladz opened 6 years ago

mikoladz commented 6 years ago

Trying to execute the script on FreeIPA server running on CentOS 7.4:

./ipa_log_config.py --target 192.168.1.1

Setting SSSD debug level to 2 Condrestarting SSSD Enabling audisp syslog plugin sed: can't read /etc/audisp/plugins.d/syslog.conf: No such file or directory Failed to execute external command: Failed to run sed on file: /etc/audisp/plugins.d/syslog.conf

Installing audit and audispd-plugins did not help, but the problem was with starting audit, I did not investigate it further. Instead I removed the stuff related to audit from the script and it worked.

kbetsis commented 5 years ago

From what i have seen the python script tries to do a "systemctl restart auditd.service" which is not allowed. A "service auditd restart" works however.