diff options
author | Frédéric Buclin <LpSolit@netscape.net> | 2017-04-17 19:20:25 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@netscape.net> | 2017-04-17 19:20:25 +0200 |
commit | aa57f25e629ad052b33d66635e5430d34f4c5f81 (patch) | |
tree | 469a32306dd731891e086af4b7b65f938ebfb904 | |
parent | 4f39e0c817f58c344fc6cd99826143fe78ddbfea (diff) | |
download | bugs-aa57f25e629ad052b33d66635e5430d34f4c5f81.tar bugs-aa57f25e629ad052b33d66635e5430d34f4c5f81.tar.gz bugs-aa57f25e629ad052b33d66635e5430d34f4c5f81.tar.bz2 bugs-aa57f25e629ad052b33d66635e5430d34f4c5f81.tar.xz bugs-aa57f25e629ad052b33d66635e5430d34f4c5f81.zip |
Correctly decode LDAP data (mga#20686)
-rw-r--r-- | Bugzilla/Auth/Verify/LDAP.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Auth/Verify/LDAP.pm b/Bugzilla/Auth/Verify/LDAP.pm index e37f55793..9687363d6 100644 --- a/Bugzilla/Auth/Verify/LDAP.pm +++ b/Bugzilla/Auth/Verify/LDAP.pm @@ -163,7 +163,8 @@ sub ldap { ThrowCodeError("ldap_server_not_defined") unless @servers; foreach (@servers) { - $self->{ldap} = new Net::LDAP(trim($_)); + # The 'raw' attribute is used to make sure that data is correctly decoded. + $self->{ldap} = new Net::LDAP(trim($_), raw => ';binary'); last if $self->{ldap}; } ThrowCodeError("ldap_connect_failed", { server => join(", ", @servers) }) |