Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
When using the API (I tried with the command line API), I can't connect using an account which is not a local account. Indeed, by using an account retrieved via LDAP, it returns the following message :
Unable to login, your password has expired.
Steps to Reproduce
Make sure you have an account defined in Centreon and which is using LDAP to connect
This account has proper rights (admin, access to API)
Execute a command in the aim to query the API.
For ex : /usr/share/centreon/bin/centreon -u -p -a POLLERLIST
Result : it returns an error message : "Unable to login, your password has expired."
Now change the "authentication source" to "Centreon" and add the same password linked to this user (if not stored already using LDAP)
Execute a command in the aim to query the API.
For ex : /usr/share/centreon/bin/centreon -u -p -a POLLERLIST
Result : it works and returns the result of this command.
Next to that, before changing the "authentication source", you can try to connect in web interface with the same account in the aim to confirm it works and password is not expired.
Describe the received result
Unable to login, your password has expired.
Describe the expected result
Should be able to connect and return the command result.
Logs
PHP error logs
For version using PHP 7.2 or 7.3 on centOs 8 or PHP 8
tail -f /var/log/php-fpm/centreon-error.log
No entries in this log when executing the cmd
centreon-engine logs (if needed)
tail -f /var/log/centreon-engine/centengine.log
No entries in this log when executing the cmd
centreon-broker logs (if needed)
tail -f /var/log/centreon-broker/central-broker-master.log
No entries in this log when executing the cmd
BUG REPORT INFORMATION
Prerequisites
Versions
For the RPM based systems
-- Copy/Paste the result of the following command --
Operating System
RHEL7
Browser used
Version: 22.10.1
Additional environment details (AWS, VirtualBox, physical, etc.):
Description
When using the API (I tried with the command line API), I can't connect using an account which is not a local account. Indeed, by using an account retrieved via LDAP, it returns the following message : Unable to login, your password has expired.
Steps to Reproduce
Next to that, before changing the "authentication source", you can try to connect in web interface with the same account in the aim to confirm it works and password is not expired.
Describe the received result
Unable to login, your password has expired.
Describe the expected result
Should be able to connect and return the command result.
Logs
PHP error logs
For version using PHP 7.2 or 7.3 on centOs 8 or PHP 8
centreon-engine logs (if needed)
centreon-broker logs (if needed)