This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
[Centreon 22.10.1][API] Unable to connect using accounts where authentication source is LDAP #12065
Labels
status/new
New tickets
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
For ex : /usr/share/centreon/bin/centreon -u <ACCOUNT_USING_LDAP> -p <PASS_ACCOUNT_USING_LDAP> -a POLLERLIST
Result : it returns an error message : "Unable to login, your password has expired."
For ex : /usr/share/centreon/bin/centreon -u <ACCOUNT_USING_LDAP> -p <PASS_ACCOUNT_USING_LDAP> -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
centreon-engine logs (if needed)
centreon-broker logs (if needed)
The text was updated successfully, but these errors were encountered: