LDAP filter

Mar 21, 2018

After reading how to setup a LDAP realm at https://pve.proxmox.com/wiki/User_Management#pveum_authentication_realms and reading the code (/usr/share/perl5/PVE/Auth/LDAP.pm around line 126) I figured out there is (yet) no way to add a custom LDAP filter.

I use a structure like:
dn: uid=jdoe,ou=people,dc=example,dc=com
structuralObjectClass: inetOrgPerson
uid: jdoe
memberOf: cn=admins,ou=groups,dc=example,dc=com

And I don't want all users being able to log onto PVE but only admins using a filter like: (memberOf= cn=admins,ou=groups,dc=example,dc=com).

Is this feature planned in a future release? would if be easily patchable? Wouldn't it be a better idea to bind as the PVE login name instead of a generic proxmox user?

Thanks in advance.


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!