From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <pve-devel-bounces@lists.proxmox.com> Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 099E21FF187 for <inbox@lore.proxmox.com>; Mon, 26 May 2025 10:23:14 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D91A82C503; Mon, 26 May 2025 10:23:24 +0200 (CEST) Date: Mon, 26 May 2025 10:22:49 +0200 (CEST) From: Alexander Abraham <a.abraham@proxmox.com> To: pve-devel@lists.proxmox.com Message-ID: <1181846122.20029.1748247769883@webmail.proxmox.com> In-Reply-To: <20250429154114.141571-1-a.abraham@proxmox.com> References: <20250429154114.141571-1-a.abraham@proxmox.com> MIME-Version: 1.0 X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev75 X-Originating-Client: open-xchange-appsuite X-SPAM-LEVEL: Spam detection results: 0 AWL 0.099 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [jsonschema.pm, proxmox.com] Subject: Re: [pve-devel] [PATCH pve-common] fix #5034: Updated the schema for the Email attribute to include a dash X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com> List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe> List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/> List-Post: <mailto:pve-devel@lists.proxmox.com> List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help> List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe> Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com> I was unable to test my patch for this bug because editing the configured schema on Turnkey Linux's OpenLDAP proved to be not doable. After coming to this conclusion, I sent the patch to the pve-devel list and asked the user whether it would be possible for them to test my patch on their setup. The user who reported the bug replied in the bug thread on Bugzilla (https://bugzilla.proxmox.com/show_bug.cgi?id=5034) saying that they have been using the same schema modification as in my patch for over a year now on their PMG setup. > Alexander Abraham <a.abraham@proxmox.com> hat am 29.04.2025 17:41 CEST geschrieben: > > > This patch fixes bug #5034. A user was having the problem of > attempting to login to PVE with an LDAP server that had a different > mail attribute ID configured. The schema of PVE's LDAP attribute ID > validation didn't accept an extra hyphen in the attribute ID. > This has now been fixed. I was unable to test this with an > Open LDAP server. > > Signed-off-by: Alexander Abraham <a.abraham@proxmox.com> > --- > src/PVE/JSONSchema.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm > index 7c63af1..ed1fb68 100644 > --- a/src/PVE/JSONSchema.pm > +++ b/src/PVE/JSONSchema.pm > @@ -415,7 +415,7 @@ PVE::JSONSchema::register_format('ldap-simple-attr', \&verify_ldap_simple_attr); > sub verify_ldap_simple_attr { > my ($attr, $noerr) = @_; > > - if ($attr =~ m/^[a-zA-Z0-9]+$/) { > + if ($attr =~ m/^[a-zA-Z0-9\-]+$/) { > return $attr; > } > > -- > 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel