[pdm-devel] [PATCH proxmox 1/1] access-control: allow first / last name with one character

Stefan Hanreich s.hanreich at proxmox.com
Tue Dec 2 15:39:32 CET 2025


In Proxmox VE we already allow creating users with a single character
as first / last name. There's real first / last names that consist of
only a letter, so do not restrict this here.

Reported-by: Fiona Ebner <f.ebner at proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
Not sure about possible ramifications with realms other than PAM / PDM
PBS, but tested with the built-in realms and didn't encounter any
problems.

 proxmox-access-control/src/types.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/proxmox-access-control/src/types.rs b/proxmox-access-control/src/types.rs
index 85b1f106..78eafb4c 100644
--- a/proxmox-access-control/src/types.rs
+++ b/proxmox-access-control/src/types.rs
@@ -24,13 +24,13 @@ pub const EXPIRE_USER_SCHEMA: Schema = IntegerSchema::new(
 
 pub const FIRST_NAME_SCHEMA: Schema = StringSchema::new("First name.")
     .format(&SINGLE_LINE_COMMENT_FORMAT)
-    .min_length(2)
+    .min_length(1)
     .max_length(64)
     .schema();
 
 pub const LAST_NAME_SCHEMA: Schema = StringSchema::new("Last name.")
     .format(&SINGLE_LINE_COMMENT_FORMAT)
-    .min_length(2)
+    .min_length(1)
     .max_length(64)
     .schema();
 
-- 
2.47.3




More information about the pdm-devel mailing list