retrieve missing attributes ldap

This commit is contained in:
Quentin 2024-01-30 15:45:48 +01:00
parent 93c0aa4b3a
commit 1d6344363a
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -60,6 +60,9 @@ impl LdapLoginProvider {
let specific = match config.storage {
LdapStorage::InMemory => StorageSpecific::InMemory,
LdapStorage::Garage(grgconf) => {
attrs_to_retrieve.push(grgconf.aws_access_key_id_attr.clone());
attrs_to_retrieve.push(grgconf.aws_secret_access_key_attr.clone());
let bucket_source =
match (grgconf.default_bucket.clone(), grgconf.bucket_attr.clone()) {
(Some(b), None) => BucketSource::Constant(b),