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 [212.224.123.68])
	by lore.proxmox.com (Postfix) with ESMTPS id BD0B31FF16B
	for <inbox@lore.proxmox.com>; Thu, 17 Apr 2025 08:29:50 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 631E0C279;
	Thu, 17 Apr 2025 08:29:32 +0200 (CEST)
To: pve-devel@lists.proxmox.com
Date: Wed, 16 Apr 2025 22:55:33 +0200
In-Reply-To: <20250416205656.153451-1-riedel@teco.edu>
References: <20250416205656.153451-1-riedel@teco.edu>
X-Mailman-Approved-At: Thu, 17 Apr 2025 08:29:30 +0200
MIME-Version: 1.0
Message-ID: <mailman.1105.1744871370.359.pve-devel@lists.proxmox.com>
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Post: <mailto:pve-devel@lists.proxmox.com>
From: Till Riedel via pve-devel <pve-devel@lists.proxmox.com>
Precedence: list
Cc: Till Riedel <riedel@teco.edu>
X-Mailman-Version: 2.1.29
X-BeenThere: pve-devel@lists.proxmox.com
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
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/>
Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
Subject: [pve-devel] [PATCH 2/2] Suppport for LDAP PosixGroups->memberUid
Content-Type: multipart/mixed; boundary="===============1518378841931372598=="
Errors-To: pve-devel-bounces@lists.proxmox.com
Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com>

--===============1518378841931372598==
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <riedel@teco.edu>
X-Original-To: pve-devel@lists.proxmox.com
Delivered-To: pve-devel@lists.proxmox.com
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 D7152D5F80
	for <pve-devel@lists.proxmox.com>; Wed, 16 Apr 2025 22:57:13 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id C0FE764BE
	for <pve-devel@lists.proxmox.com>; Wed, 16 Apr 2025 22:57:13 +0200 (CEST)
Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [IPv6:2a00:1398:9:f712::810d:e752])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by firstgate.proxmox.com (Proxmox) with ESMTPS
	for <pve-devel@lists.proxmox.com>; Wed, 16 Apr 2025 22:57:09 +0200 (CEST)
Received: by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(envelope-from <riedel@teco.edu>)
	id 1u59oc-00A80b-15
	for pve-devel@lists.proxmox.com;
	Wed, 16 Apr 2025 22:57:03 +0200
Received: from [129.13.170.146] (helo=teco.edu)
	by mailhost.teco.edu with smtp (Exim 4.96)
	(envelope-from <riedel@teco.edu>)
	id 1u59ob-005i0l-1V;
	Wed, 16 Apr 2025 20:57:02 +0000
Received: (nullmailer pid 153494 invoked by uid 7534);
	Wed, 16 Apr 2025 20:57:02 -0000
From: Till Riedel <riedel@teco.edu>
To: pve-devel@lists.proxmox.com
Cc: Till Riedel <riedel@teco.edu>
Subject: [PATCH 2/2] Suppport for LDAP PosixGroups->memberUid 
Date: Wed, 16 Apr 2025 22:55:33 +0200
Message-ID: <20250416205656.153451-4-riedel@teco.edu>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20250416205656.153451-1-riedel@teco.edu>
References: <20250416205656.153451-1-riedel@teco.edu>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-SPAM-LEVEL: Spam detection results:  0
	BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
	DMARC_PASS               -0.1 DMARC pass policy
	KAM_DMARC_STATUS         0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
	RCVD_IN_DNSWL_MED        -2.3 Sender listed at https://www.dnswl.org/, medium trust
	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. [ldap.pm]
X-Mailman-Approved-At: Thu, 17 Apr 2025 08:29:30 +0200

Signed-off-by: Till Riedel <riedel@teco.edu>
---
 src/PVE/Auth/LDAP.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/PVE/Auth/LDAP.pm b/src/PVE/Auth/LDAP.pm
index bf7e968..ff05f02 100755
--- a/src/PVE/Auth/LDAP.pm
+++ b/src/PVE/Auth/LDAP.pm
@@ -383,6 +383,10 @@ sub get_groups {
 		if (my $user = $dnmap->{lc($member)}) {
 		    $ret->{$name}->{users}->{$user} = 1;
 		}
+                else
+                {
+                    $ret->{$name}->{users}->{"$member\@$realm"} = 1;
+                }
 	    }
 	}
     }
-- 
2.45.1



--===============1518378841931372598==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

--===============1518378841931372598==--