Closed morremeyer closed 6 years ago
Hi,
thanks for reporting. Looks like the wrong attribute was documented, the right one should be password_hash
. Could you may try that?
Best regards Michael
@mcktr Yes, that is indeed the resolution. I submitted #6176 to fix it.
A test API user is defined as follows, according to https://www.icinga.com/docs/icinga2/latest/doc/09-object-types/#objecttype-apiuser
Expected Behavior
Icinga2 loads normally.
Current Behavior
The configuration check fails:
When testing with
password
instead ofhashed_password
, the configuration check suceeds and icinga2 starts as expected.Steps to Reproduce (for bugs)
icinga2 node setup --master
icinga2 feature enable api
/etc/icinga2/conf.d/api-users.conf
to the configuration described aboveContext
I'd like to use salted + hashed passwords instead of clear text ones.
Your Environment
Copyright (c) 2012-2017 Icinga Development Team (https://www.icinga.com/) License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl2.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Application information: Installation root: /usr Sysconf directory: /etc Run directory: /run Local state directory: /var Package data directory: /usr/share/icinga2 State path: /var/lib/icinga2/icinga2.state Modified attributes path: /var/lib/icinga2/modified-attributes.conf Objects path: /var/cache/icinga2/icinga2.debug Vars path: /var/cache/icinga2/icinga2.vars PID path: /run/icinga2/icinga2.pid
System information: Platform: Ubuntu Platform version: 16.04.4 LTS (Xenial Xerus) Kernel: Linux Kernel version: 4.4.0-112-generic Architecture: x86_64
Build information: Compiler: GNU 5.3.1 Build host: 86927c12b6d8
root@mon01:/etc/icinga2# icinga2 feature list Disabled features: compatlog debuglog elasticsearch gelf graphite influxdb livestatus opentsdb perfdata statusdata syslog Enabled features: api checker command ido-mysql mainlog notification