From 9732695e0f01cf59dd57ba88cec3a274b7f725f8 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 30 Jul 2022 16:57:29 +0300
Subject: [PATCH] Fix for the lam-setpass script.

---
 ldap-account-manager/lam-setpass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ldap-account-manager/lam-setpass b/ldap-account-manager/lam-setpass
index 4e482f4..fca0a53 100755
--- a/ldap-account-manager/lam-setpass
+++ b/ldap-account-manager/lam-setpass
@@ -9,6 +9,7 @@ $cfg->setPassword($argv[1]);
 $cfg->save();
 
 // For the server profiles.
-$conf = new LAMConfig("lam");
+$profile_manager = new ServerProfilePersistenceManager();
+$conf = $profile_manager->loadProfile("lam");
 $conf->set_Passwd($argv[1]);
-$conf->save();
+$profile_manager->saveProfile($conf, "lam");
-- 
GitLab