Use an option to decode group searched value (#1601)

This commit is contained in:
Clément OUDOT 2019-02-02 10:48:55 +01:00
parent e7a9bd0652
commit 0fc2e92136

View File

@ -101,7 +101,10 @@ sub setGroups {
my $group_value = $self->ldap->getLdapValue( $req->data->{entry},
$self->conf->{ldapGroupAttributeNameUser} );
utf8::downgrade($group_value);
if ( $self->conf->{ldapGroupDecodeSearchedValue} ) {
utf8::decode($group_value);
}
$self->logger->debug( "Searching LDAP groups in "
. $self->conf->{ldapGroupBase}
. " for $group_value" );