aboutsummaryrefslogtreecommitdiff
path: root/src/login/ldap_provider.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-16 11:13:32 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-16 11:13:32 +0100
commit684f4de225c44464abcb6a9cb2ef6dcae90537a8 (patch)
treecbbc9ba773ed3d9f8f011637d58791af79672774 /src/login/ldap_provider.rs
parent1b5f2eb695d658c57ba9c4264e76ca13bd82a958 (diff)
downloadaerogramme-684f4de225c44464abcb6a9cb2ef6dcae90537a8.tar.gz
aerogramme-684f4de225c44464abcb6a9cb2ef6dcae90537a8.zip
new new new storage interface
Diffstat (limited to 'src/login/ldap_provider.rs')
-rw-r--r--src/login/ldap_provider.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/ldap_provider.rs b/src/login/ldap_provider.rs
index 6e94061..4e3af3c 100644
--- a/src/login/ldap_provider.rs
+++ b/src/login/ldap_provider.rs
@@ -87,7 +87,9 @@ impl LdapLoginProvider {
fn storage_creds_from_ldap_user(&self, user: &SearchEntry) -> Result<Builders> {
let storage: Builders = match &self.storage_specific {
- StorageSpecific::InMemory => Box::new(storage::in_memory::FullMem {}),
+ StorageSpecific::InMemory => Box::new(storage::in_memory::FullMem::new(
+ &get_attr(user, &self.username_attr)?
+ )),
StorageSpecific::Garage { from_config, bucket_source } => {
let aws_access_key_id = get_attr(user, &from_config.aws_access_key_id_attr)?;
let aws_secret_access_key = get_attr(user, &from_config.aws_secret_access_key_attr)?;