aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/Auth/Verify/LDAP.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Auth/Verify/LDAP.pm')
-rw-r--r--Bugzilla/Auth/Verify/LDAP.pm3
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) })