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.
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.
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.