I have migrated the LibreNMS from the docker container to the standalone server. However, after setting it up on CentOS 7 Platform using the guide provided by your site, I ported over the database and did the upgrade to the current version. After doing the necessary steps for updating the configuration to the new version, I went to re-add the LDAP Authenitication and I found it does not work anymore.
Here is the old version which it works vs the current version:
Original:
$ ./validate.php
Component | Version |
---|---|
LibreNMS | 1.36 |
DB Schema | ? |
PHP | 7.2.1-1+ubuntu16.04.1+deb.sury.org+1 |
MySQL | ? |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
==================================== |
Current:
-bash-4.2$ ./validate.php
Component | Version |
---|---|
LibreNMS | 1.54 |
DB Schema | 2019_07_03_132417_create_mpls_saps_table (177) |
PHP | 7.2.19 |
MySQL | 10.3.13-MariaDB |
RRDTool | 1.6.0 |
SNMP | NET-SNMP 5.7.2 |
==================================== |
The main issue is that the auth_test.php shows it can authenticate and fetch the users list, but when it comes to authentication by passwords, it always keep throwing this error and from the logs, it shows it to be error in authentication by password.
-bash-4.2$ ./auth_test.php -u rrademacher
Authentication Method: mysql
Password:
Authenticate user rrademacher:
Error: LibreNMS\Exceptions\AuthenticationException thrown!
Invalid credentials
auth_test.php -l
-bash-4.2$ ./auth_test.php -l
Authentication Method: ldap
Users: (0), davidp (1009), cterry (1004), rrademacher (1010), syedi (1011), agolestan (1014), sahn (1002), YunaLee (1005), TanasiaD (1036), JayK (1040), TonyHong (1045), DongEekRhee (1047), WonJinKim (1048), alee (1003)
Total users: 14
Under the docker system, it works correctly under the old LibreNMS version. Both LibreNMS systems are authenticating to the same OpenLDAP server and the current LibreNMS have issues with authentication for it.