[pdm-devel] [PATCH proxmox-datacenter-manager 1/9] auth: allow tokens in term tickets

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Nov 11 09:29:24 CET 2025


adapting to proxmox-auth-api change required for PBS support for remote shells.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    new in v1

 server/src/auth/mod.rs | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/server/src/auth/mod.rs b/server/src/auth/mod.rs
index 9413a83..0d6bcdd 100644
--- a/server/src/auth/mod.rs
+++ b/server/src/auth/mod.rs
@@ -141,7 +141,7 @@ impl proxmox_auth_api::api::AuthContext for PdmAuthContext {
     /// Check path based tickets. (Used for terminal tickets).
     fn check_path_ticket(
         &self,
-        userid: &Userid,
+        auth_id: &Authid,
         password: &str,
         path: String,
         privs: String,
@@ -155,11 +155,10 @@ impl proxmox_auth_api::api::AuthContext for PdmAuthContext {
             ticket.verify(
                 &self.keyring,
                 TERM_PREFIX,
-                Some(&format!("{}{}{}", userid, path, port)),
+                Some(&format!("{}{}{}", auth_id, path, port)),
             )
         }) {
             let user_info = CachedUserInfo::new()?;
-            let auth_id = Authid::from(userid.clone());
             for (name, privilege) in pdm_api_types::PRIVILEGES {
                 if *name == privs {
                     let mut path_vec = Vec::new();
-- 
2.47.3





More information about the pdm-devel mailing list