[pmg-devel] [PATCH pmg-api 1/1] api: ldap config: sync with the complete config

Dominik Csapak d.csapak at proxmox.com
Wed Oct 27 17:02:28 CEST 2021


use the complete config, not only the one from the parameters.
This is necessary to use the saved bindpw when it's not sent
via the api.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/PMG/API2/LDAP.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PMG/API2/LDAP.pm b/src/PMG/API2/LDAP.pm
index e07aae0..d2ee6a4 100644
--- a/src/PMG/API2/LDAP.pm
+++ b/src/PMG/API2/LDAP.pm
@@ -249,7 +249,7 @@ __PACKAGE__->register_method ({
 		$ids->{$profile}->{$p} = $config->{$p};
 	    }
 
-	    $forced_ldap_sync->($profile, $config)
+	    $forced_ldap_sync->($profile, $ids->{$profile})
 		if !$config->{disable};
 
 	    $cfg->write();
-- 
2.30.2





More information about the pmg-devel mailing list