server: Handle "1.1" special attribute

This commit is contained in:
Valentin Tolmer 2022-04-17 23:25:41 +02:00 committed by nitnelave
parent 8d7881171b
commit 2197fe77a5

View File

@ -109,6 +109,7 @@ fn get_user_attribute(user: &User, attribute: &str, dn: &str) -> Result<Vec<Stri
"sn" => 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),
}
}