public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Till Riedel via pve-devel <pve-devel@lists.proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Till Riedel <riedel@teco.edu>
Subject: [pve-devel] [PATCH 2/2] Suppport for LDAP PosixGroups->memberUid
Date: Wed, 16 Apr 2025 22:55:33 +0200	[thread overview]
Message-ID: <mailman.1105.1744871370.359.pve-devel@lists.proxmox.com> (raw)
In-Reply-To: <20250416205656.153451-1-riedel@teco.edu>

[-- Attachment #1: Type: message/rfc822, Size: 3323 bytes --]

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>

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



[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

      parent reply	other threads:[~2025-04-17  6:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250416205656.153451-1-riedel@teco.edu>
2025-04-16 20:55 ` [pve-devel] [PATCH 0/2] " Till Riedel via pve-devel
2025-04-16 20:55 ` [pve-devel] [PATCH 1/2] " Till Riedel via pve-devel
2025-04-16 20:55 ` Till Riedel via pve-devel [this message]

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=mailman.1105.1744871370.359.pve-devel@lists.proxmox.com \
    --to=pve-devel@lists.proxmox.com \
    --cc=riedel@teco.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal