LemonLDAP::NG SAML IDP crash when saml attribute contains a special character in debug mode
Concerned version
Version: %2.0.14
Platform: Nginx
Summary
When a lemonldap portal configured as SAML IdP tries to send the attributes to his service provider, it crashes when displaying the logs to Syslog in debug mode.
Problems occurs in Portal/Lib/SAML.pm
sub createAttributeValue {
my ( $self, $value, $force_utf8 ) = @_;
my $saml2value;
$force_utf8 = 1 unless defined($force_utf8);
# Value is required
return unless defined $value;
# Decode UTF-8
$self->logger->debug("Decode UTF8 value $value") if $force_utf8;
For the record, the setup is:
- Nginx portal
- authentication = another SAML IDP
- sessions and SAML sessions = postgresql database
Logs
SAML2 attribute Prenom will be set with Prenom session key (https://sp.domain.com/saml/metadata)
Decode UTF8 value Andr
the é of André is not displayed, there is no more logs after that, and portal sends error 500.