Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Error on authentication tester
« previous
next »
Print
Pages: [
1
]
Author
Topic: Error on authentication tester (Read 19406 times)
meyergru
Hero Member
Posts: 1684
Karma: 165
IT Aficionado
Error on authentication tester
«
on:
April 10, 2021, 11:42:26 pm »
Whenever I test access on
https://opnsense/diag_authentication.php
and enter a wrong password (or combination of TOTP and password), I get this error:
Fatal error: Uncaught Error: Call to undefined method OPNsense\Auth\Local::getLastAuthErrors() in /usr/local/www/diag_authentication.php:76 Stack trace: #0 {main} thrown in /usr/local/www/diag_authentication.php on line 76
It seems like the function getLastAuthErrors() is not defined in /usr/local/opnsense/mvc/app/library/OPNsense/Auth/Local.php, only in /usr/local/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php - thus, it cannot be called in the general case.
This error is a little uncomforting, because I do not dare to activate TOTP-based authentication before I can be sure that it works...
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Error on authentication tester
«
Reply #1 on:
April 11, 2021, 02:03:15 am »
Sure, looks like a bug. But given the point of the tester is to verify that login is allowed with correct credentials, does it really matter that you get this with incorrect credentials? Can confirm that TOTP running here for months is absolutely fine
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Error on authentication tester
«
Reply #2 on:
April 11, 2021, 12:12:30 pm »
can you try fix mentioned in
https://forum.opnsense.org/index.php?topic=22370.msg106236#msg106236
?
Logged
meyergru
Hero Member
Posts: 1684
Karma: 165
IT Aficionado
Re: Error on authentication tester
«
Reply #3 on:
April 13, 2021, 10:05:27 pm »
Of course that works, because the call to getLastAuthErrors() is removed by that patch.
It should be applied to the release version.
«
Last Edit: April 14, 2021, 10:42:19 pm by meyergru
»
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Error on authentication tester
«
Reply #4 on:
April 13, 2021, 10:13:47 pm »
good!
call is not removed but function moved from LDAP to Base. anyway this fixes my stupid mistake and I hope that the patch will be in the next release
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Error on authentication tester
«
Reply #5 on:
April 14, 2021, 08:39:03 am »
Quote from: meyergru on April 13, 2021, 10:05:27 pm
It should be applied to the release version.
It is already applied to the upcoming version.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Error on authentication tester