authd-update-in-ossec-conf

This commit is contained in:
Nicolas Lastra 2021-11-17 15:22:16 -03:00
parent 9f82175ab4
commit 9534838714
No known key found for this signature in database
GPG Key ID: 749E0D60DEC5E4D8
2 changed files with 27 additions and 8 deletions

View File

@ -351,8 +351,11 @@ wazuh_manager_authd:
enable: true enable: true
port: 1515 port: 1515
use_source_ip: 'no' use_source_ip: 'no'
force_insert: 'yes' force:
force_time: 0 enabled: yes
key_mismatch: yes
disconnected_time: '1h'
after_registration_time: '1h'
purge: 'yes' purge: 'yes'
use_password: 'no' use_password: 'no'
ciphers: 'HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH' ciphers: 'HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH'

View File

@ -623,12 +623,28 @@
{% if wazuh_manager_config.authd.use_source_ip is not none %} {% if wazuh_manager_config.authd.use_source_ip is not none %}
<use_source_ip>{{wazuh_manager_config.authd.use_source_ip}}</use_source_ip> <use_source_ip>{{wazuh_manager_config.authd.use_source_ip}}</use_source_ip>
{% endif %} {% endif %}
{% if wazuh_manager_config.authd.force_insert is not none %} <force>
<force_insert>{{wazuh_manager_config.authd.force_insert}}</force_insert> {% if wazuh_manager_config.authd.force.enabled is not none %}
<enabled>{{wazuh_manager_config.authd.port}}</enabled>
{% else %}
<enabledport>yes</enabled>
{% endif %} {% endif %}
{% if wazuh_manager_config.authd.force_time is not none %} {% if wazuh_manager_config.authd.force.key_mismatch is not none %}
<force_time>{{wazuh_manager_config.authd.force_time}}</force_time> <key_mismatch>{{wazuh_manager_config.authd.port}}</key_mismatch>
{% else %}
<key_mismatch>yes</key_mismatch>
{% endif %} {% endif %}
{% if wazuh_manager_config.authd.force.disconnected_time is not none %}
<disconnected_time>{{wazuh_manager_config.authd.port}}</disconnected_time>
{% else %}
<disconnected_time>1h</disconnected_time>
{% endif %}
{% if wazuh_manager_config.authd.force.after_registration_time is not none %}
<after_registration_time>{{wazuh_manager_config.authd.port}}</after_registration_time>
{% else %}
<after_registration_time>1h</after_registration_time>
{% endif %}
</force>
{% if wazuh_manager_config.authd.purge is not none %} {% if wazuh_manager_config.authd.purge is not none %}
<purge>{{wazuh_manager_config.authd.purge}}</purge> <purge>{{wazuh_manager_config.authd.purge}}</purge>
{% endif %} {% endif %}