From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 79E9B62C67 for ; Mon, 8 Feb 2021 13:32:43 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 77C3821A9C for ; Mon, 8 Feb 2021 13:32:43 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on20702.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e89::702]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id CB73621A92 for ; Mon, 8 Feb 2021 13:32:42 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hRnDYANuJh4dEAULtTNg1H5lDRxc45JEoaRye4VFPwHR1PHS5a4Egg6RLwSuZzy0qv81jAdVKsxzCE9yUD+1PtEhtind02dKdAp2H46GHE+5nEq7fAoXsnPZGviHYd8MAuqkbu88pwMWmxTZ4RTrWr8lyIa5dYg008TV+yzUcOWMXnDfdskPJ04Et1iLL44qPsDIl2zSqTEdJTDCbKZ9T3EEzvmsvCGpez3ANdmy+EGTLgyqmFxAL9G6ETNUkWh/j2YJlR/AKkkt/uOl8TlfjP/PnubH4vVV0PPmRG4ay0YNFDBkIgWVipvp90UMVmQR3Bjinxn7dXSdv2bJxYp2Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YqBBsFFH7WeIeBAH2xzKpwvo1Omsm6krhFv8vSh+pwc=; b=WcdCRhghI5BfxpJyxdNfCCFCfgckP7O531kxWRFVCxgfRcWRCsaZ9mLYgskXFcuAB1B0ZeI+ch0tBYTr72X+mfiIV0h7cfJha6vfKe6QlfczOFR8wrsdvF+ev+O6jZ5vjHSFfi3npGSyvJVParmn9S1uK4gAHhm1ExqS3ZE6zwd5GfSSi1To0nhNeJTJ9ZAmEyCbz2EXYwt6jPjSJD/D/ipoRVKIRZ/0zwnJVG5TCfhAqKev8ZMBhzn5qQZtgIotic9DoZVgB34p3bMjIIDSSTwUMSgIN0vnLXWpHK65CdtGalo5OQEaDE4DVvff7D4BPo+guTPu9yHltRWnh/tklw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 81.175.5.190) smtp.rcpttodomain=lists.proxmox.com smtp.mailfrom=openit.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=openit.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openit.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YqBBsFFH7WeIeBAH2xzKpwvo1Omsm6krhFv8vSh+pwc=; b=R1hbTk1+80vVMKpZH0roMQt7QNUkmeOExleuLG3stcZROsFZ54FZ9hk3kPWlcfO/7mOy+LYbIJDDv6Hgmzw+gBcPmlDDGL3fIMQrg+iqrBDN8Op84+kOEXC4XmD1cHOxqtXoO5HslUCVzEgCf9MUqoK+p22s9XyYYOjIfZzTRIc= Received: from BN0PR04CA0146.namprd04.prod.outlook.com (2603:10b6:408:ed::31) by SN6PR06MB5087.namprd06.prod.outlook.com (2603:10b6:805:b9::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.25; Mon, 8 Feb 2021 12:32:34 +0000 Received: from BN8NAM11FT011.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ed:cafe::22) by BN0PR04CA0146.outlook.office365.com (2603:10b6:408:ed::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.19 via Frontend Transport; Mon, 8 Feb 2021 12:32:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 81.175.5.190) smtp.mailfrom=openit.com; lists.proxmox.com; dkim=none (message not signed) header.d=none;lists.proxmox.com; dmarc=pass action=none header.from=openit.com; Received-SPF: Pass (protection.outlook.com: domain of openit.com designates 81.175.5.190 as permitted sender) receiver=protection.outlook.com; client-ip=81.175.5.190; helo=mail.openit.com; Received: from mail.openit.com (81.175.5.190) by BN8NAM11FT011.mail.protection.outlook.com (10.13.176.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3784.12 via Frontend Transport; Mon, 8 Feb 2021 12:32:33 +0000 Received: from osl080lin.svg.openit.local (192.168.4.104) by osl015win.svg.openit.local (192.168.4.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P521) id 15.1.2106.2; Mon, 8 Feb 2021 13:32:31 +0100 From: =?UTF-8?q?=C3=85dne=20Hovda?= To: CC: =?UTF-8?q?=C3=85dne=20Hovda?= Date: Mon, 8 Feb 2021 13:32:11 +0100 Message-ID: <20210208123211.4042482-1-ahovda@openit.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: osl015win.svg.openit.local (192.168.4.15) To osl015win.svg.openit.local (192.168.4.15) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bcc9d4e2-045e-437a-f2f7-08d8cc2d9bf2 X-MS-TrafficTypeDiagnostic: SN6PR06MB5087: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FiovxoL5QjtfdKnEd6tRDZwHrPxqxm23vmIcaZQM5q1r9g8wwqqCnhQE4S17E3qftOlTrR1yWXXuk3oxXdTkL2hAb8Sge9gS/zT9w1sf4/hZLkZDWzE3G4kuqpmJTylkW7yjg2vkugZj7dpjMV/tlsN6ME8MSMy+TPyq+gqtmlwIKJURdgy9XJB+u5CJ11J0KTLuOEESNhAWK1Rig2fZ46YFPd8UEG7/0z+zvFpIFbIbJcLja/KXG2zr8UL8MU/DTR9K5HoUhALNhqySygiZwMpZX89ldDCJf3AUCF7T3YtZuGZWNK6687E4FWmW15APx/KLh7OoLe4j3rnXWYzKaHQr0Pv8/b1CtzsFEPJ20C3ADmWevQcw3Rc8Qw8itR/8pdTusvFsTs04vSsS2ROvPTUvDcNjOMlww45GKPE7ixwTGe9RlH6cAUr+VqiMTQGQZ9KGrjQxQdsiL6FxL/6Y18Q/StqYFaqEmd8ofpCE/+qR6mShUUejfCfjqSGI4CtXsawKGEyvXcX+ef2INvo5YavAh1xMlJaQQV29PAMxKtF90wgCCU0p+QdvkboXZ+g5zVavhpp1AeriyoDBlAKB2Dc6bMSGNKnKpGw2hk+E5tBd4MZ7daVezredVknG+rIMchcdTqegfuynJ/9uWT6+QvgoHA8lPmlQb7YQXEtrCkg= X-Forefront-Antispam-Report: CIP:81.175.5.190; CTRY:NO; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.openit.com; PTR:mail.openit.com; CAT:NONE; SFS:(136003)(396003)(376002)(39830400003)(346002)(36840700001)(46966006)(356005)(7596003)(7636003)(82310400003)(26005)(6916009)(316002)(2616005)(70206006)(36756003)(186003)(70586007)(86362001)(8936002)(47076005)(5660300002)(336012)(2906002)(8676002)(36860700001)(4744005)(4326008)(1076003)(478600001)(6666004)(107886003); DIR:OUT; SFP:1102; X-OriginatorOrg: openit.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2021 12:32:33.2561 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bcc9d4e2-045e-437a-f2f7-08d8cc2d9bf2 X-MS-Exchange-CrossTenant-Id: b198a08d-7d22-4c5c-80f6-4adc8919af8b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b198a08d-7d22-4c5c-80f6-4adc8919af8b; Ip=[81.175.5.190]; Helo=[mail.openit.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT011.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR06MB5087 X-SPAM-LEVEL: Spam detection results: 0 DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record X-Mailman-Approved-At: Tue, 09 Feb 2021 10:30:58 +0100 Subject: [pve-devel] [PATCH common] Added 'raw' option to LDAP constructor for UTF8 string default decoding X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 12:32:43 -0000 --- 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