render = Router::render(move |s| Self::dispatch_route(s, &link, is_admin))
diff --git a/server/src/infra/ldap_handler.rs b/server/src/infra/ldap_handler.rs
index fcfa127..6e1e5f9 100644
--- a/server/src/infra/ldap_handler.rs
+++ b/server/src/infra/ldap_handler.rs
@@ -13,6 +13,9 @@ use ldap3_server::proto::{
};
use log::{debug, warn};
+#[derive(Debug, PartialEq, Eq, Clone)]
+struct LdapDn(String);
+
fn make_dn_pair(mut iter: I) -> Result<(String, String)>
where
I: Iterator- ,
@@ -94,24 +97,24 @@ fn get_user_id_from_distinguished_name(
}
}
-fn get_user_attribute(user: &User, attribute: &str, dn: &str) -> Result> {
- match attribute.to_lowercase().as_str() {
- "objectclass" => Ok(vec![
+fn get_user_attribute(user: &User, attribute: &str, dn: &str) -> Result