Commit ed7eeeba authored by Clément OUDOT's avatar Clément OUDOT

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

parent 22a54210
......@@ -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" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment