From: "Ådne Hovda" <ahovda@openit.com>
To: <pve-devel@lists.proxmox.com>
Cc: "Ådne Hovda" <ahovda@openit.com>
Subject: [pve-devel] [PATCH common] Added 'raw' option to LDAP constructor for UTF8 string default decoding
Date: Mon, 8 Feb 2021 13:32:11 +0100 [thread overview]
Message-ID: <20210208123211.4042482-1-ahovda@openit.com> (raw)
---
Notes:
When syncing users including given/surname with non-ASCII characters from Active Directory I found garbled text in the users list in the GUI. Adding this option to the Net::LDAP object solved the issue.
src/PVE/LDAP.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/LDAP.pm b/src/PVE/LDAP.pm
index ff98e36..5fa43a8 100644
--- a/src/PVE/LDAP.pm
+++ b/src/PVE/LDAP.pm
@@ -23,6 +23,7 @@ sub ldap_connect {
port => $port,
timeout => 10,
onerror => 'die',
+ raw => qr/(;binary)/,
);
my $hosts = [];
--
2.29.2
reply other threads:[~2021-02-08 12:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210208123211.4042482-1-ahovda@openit.com \
--to=ahovda@openit.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.