"Internal Server Error" during MFA flow when using LDAP as UserDB in 2.0.15
Concerned version
Version: 2.0.15
Platform: OpenResty 1.21.4.1 / MariaDB 10.6.9 / Samba 4.16.5
Summary
After upgrade to 2.0.15, when trying to reach a vhost which requires an auth level > to the default one, I'm prompted to upgrade my session with a 2FA (session upgrade plugin is enabled), I select my 2FA (tested with TOTP and WebAuthn), but when I submit it, I get an Internal Server Error.
Logs
Log snippet attached. We can see user dani trying to access https://sso-admin.example.org which requires an auth level of 5. First, I login with an AD backend (which grants an auth level of 2), then I'm prompted to upgrade my session, I choose WebAuthen, which works, but then there's a fatal error
sept. 14 16:52:32 proxyin uwsgi[92783]: [uwsgi-perl error] Can't call method "dn" on an undefined value at /usr/share/perl5/vendor_perl/Lemonldap/NG/Portal/Lib/Net/LDAP.pm line 738.
Backends used
Default UserDB and PasswordDB is AD (against a Samba4 DC). Config and sessions are in MariaDB. I've tested with llng-fastcgi-server on EL7 and with uwsgi on EL8, both with the same result