From 2197fe77a5d96213e47e4cbfa43d4720ab7d2241 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Sun, 17 Apr 2022 23:25:41 +0200 Subject: [PATCH] server: Handle "1.1" special attribute --- server/src/infra/ldap_handler.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/infra/ldap_handler.rs b/server/src/infra/ldap_handler.rs index 9c5729f..8e1998a 100644 --- a/server/src/infra/ldap_handler.rs +++ b/server/src/infra/ldap_handler.rs @@ -109,6 +109,7 @@ fn get_user_attribute(user: &User, attribute: &str, dn: &str) -> Result Ok(vec![user.last_name.clone()]), "cn" | "displayname" => Ok(vec![user.display_name.clone()]), "createtimestamp" | "modifytimestamp" => Ok(vec![user.creation_date.to_rfc3339()]), + "1.1" => Ok(vec![]), _ => bail!("Unsupported user attribute: {}", attribute), } }