Implement passwordManager functionality (#1)
All checks were successful
Build and deploy / Build container (push) Successful in 2m46s
Build and deploy / Publish manifests (push) Successful in 34s

This commit is contained in:
Dreaded_X 2025-03-19 03:25:35 +01:00
parent c1fb7d3fe6
commit 69588d2748
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4

View File

@ -219,7 +219,15 @@ impl Reconcile for ServiceUser {
}?;
trace!(name, "Updating groups");
let groups = self.spec.additional_groups.clone();
let mut groups = self.spec.additional_groups.clone();
groups.push(
if self.spec.password_manager {
"lldap_password_manager"
} else {
"lldap_strict_readonly"
}
.to_owned(),
);
lldap_client.update_user_groups(&user, &groups).await?;
trace!(name, "Updating password");