From 2c4e81f70bfd0a5335b60ff56023d5c8f376f8ea Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 20 Nov 2019 16:36:29 +0100 Subject: [PATCH] When creating a domain, first create, then configure createDomain does not accept +zimbraAuthLdapURL (multi-value attr) --- zmldapsync/zmldapsync.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zmldapsync/zmldapsync.pl b/zmldapsync/zmldapsync.pl index b081162..d4d97d1 100644 --- a/zmldapsync/zmldapsync.pl +++ b/zmldapsync/zmldapsync.pl @@ -107,9 +107,8 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) { if ( scalar $zim_domain_search->entries == 0 ) { if ( yaml_bool($conf->{domains}->{$domain}->{zimbra}->{create_if_missing}) ) { log_info( "Creating domain $domain" ); - send_zmprov_cmd( "createDomain $domain " . - build_domain_attrs($conf->{domains}->{$domain}) - ); + send_zmprov_cmd( "createDomain $domain "); + send_zmprov_cmd( "modifyDomain $domain " . build_domain_attrs( $conf->{domains}->{$domain} )); # Now that we have created the domain, lets lookup again $zim_domain_search = search_zim_domain($domain); } else {