From 4f96f4d44ada87175e5791e4f50ae4eba9825e6a Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 20 Nov 2019 16:48:11 +0100 Subject: [PATCH] Fix user alias creation for non default domains --- zmldapsync/zmldapsync.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zmldapsync/zmldapsync.pl b/zmldapsync/zmldapsync.pl index d4d97d1..3c98982 100644 --- a/zmldapsync/zmldapsync.pl +++ b/zmldapsync/zmldapsync.pl @@ -419,8 +419,8 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) { foreach my $alias ( @ext_aliases ) { next if ( not alias_matches_domain( $alias, $domain_entry ) ); next if ( grep { $alias eq $_ } @{ $zim_users->{$user}->{mail} } ); - log_verbose( "Creating alias $alias for user $user" ); - send_zmprov_cmd( "addAccountAlias $user $alias" ); + log_verbose( "Creating alias $alias for user $user\@$domain" ); + send_zmprov_cmd( "addAccountAlias $user\@$domain $alias" ); } # On each sync, we register the list of LDAP aliases into Zimbra's LDAP in the zimbraNotes attribute