From 9c5fe5a4e1c4373620e0270c8d5d421c63a917ac Mon Sep 17 00:00:00 2001 From: kojir0 Date: Tue, 22 Jun 2021 12:18:37 +0200 Subject: [PATCH] modify to ldap_url to ldap_master_url when use enable domain, this script try to write to ldap. ldap_url can contain slave ldap so it should use ldap_master_url instead. --- src/libexec/zmaltermimeconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexec/zmaltermimeconfig b/src/libexec/zmaltermimeconfig index 6611b64e1..b77b9e6da 100755 --- a/src/libexec/zmaltermimeconfig +++ b/src/libexec/zmaltermimeconfig @@ -55,7 +55,7 @@ $c{zmprov}="/opt/zimbra/bin/zmprov -l --"; # ***** Main ***** my $ldappass = qx($c{zmlocalconfig} -s -m nokey zimbra_ldap_password); my $ldapdn = qx($c{zmlocalconfig} -s -m nokey zimbra_ldap_userdn); -my $ldapurl = qx($c{zmlocalconfig} -s -m nokey ldap_url); +my $ldapurl = qx($c{zmlocalconfig} -s -m nokey ldap_master_url); chop($ldappass); chop($ldapdn); chop($ldapurl);