I've done a little module dev before but it was a long time ago.
I'm trying to get this OTRS 5 plug-in working on Znuny 7.0 authenticating to Azure AD: https://github.com/restena-ma/otrs-saml2sp/
I've debugged and resolved a few issues and it's now redirecting, authenticating and returning correctly, it also validates the response SAML assertion, but then I just get:
Code: Select all
ERROR: Znuny-CGI-57 Perl: 5.34.0 OS: linux Time: Tue May 9 14:40:12 2023
Message: Need User!
RemoteAddress: w.x.y.z
RequestURI: /znuny/index.pl?Action=Login
Traceback (103132):
Module: Kernel::System::Auth::DB::Auth Line: 79
Module: Kernel::System::Auth::Auth Line: 164
Module: Kernel::System::Web::InterfaceAgent::Run Line: 249
Module: ModPerl::ROOT::ModPerl::Registry::opt_znuny_bin_cgi_2dbin_index_2epl::handler Line: 39
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32
ERROR: Znuny-CGI-57 Perl: 5.34.0 OS: linux Time: Tue May 9 14:40:12 2023
Message: Need UserLogin or UserID!
RemoteAddress: w.x.y.z
RequestURI: /znuny/index.pl?Action=Login
Traceback (103132):
Module: Kernel::System::User::UserLookup Line: 1001
Module: Kernel::System::Auth::Auth Line: 259
Module: Kernel::System::Web::InterfaceAgent::Run Line: 249
Module: ModPerl::ROOT::ModPerl::Registry::opt_znuny_bin_cgi_2dbin_index_2epl::handler Line: 39
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32
Any help with this would be appreciated, especially if you've worked with the authentication part of Znuny.