Skip to content
Snippets Groups Projects
Commit 405b6efb authored by lxa4096's avatar lxa4096
Browse files

LDAP: Fix get_value on undefined value for external_entry

I do not know, in which cases the external_entry is specified by RT and in
which not.
The logs show this error occurred since 01.07.2024

Taken from the documentation:
https://github.com/bestpractical/rt/blob/rt-4.4.6/lib/RT/Authen/ExternalAuth.pm#L261
"The subroutine is called in 2 modes: when called with external_entry
specified, it should return value or list of values, otherwise, it should
return the external field list it depends on, so RT could retrieve them at the
beginning."
"E.g.

    YYY => sub {
        my %args = @_;

        return 'XXX' unless $args{external_entry};

        my @values = grep defined && length, $args{external_entry}->get_value('XXX');
        return @values;
    },"
parent 62ee7683
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment