|
|
@ -419,8 +419,8 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) { |
|
|
|
foreach my $alias ( @ext_aliases ) { |
|
|
|
foreach my $alias ( @ext_aliases ) { |
|
|
|
next if ( not alias_matches_domain( $alias, $domain_entry ) ); |
|
|
|
next if ( not alias_matches_domain( $alias, $domain_entry ) ); |
|
|
|
next if ( grep { $alias eq $_ } @{ $zim_users->{$user}->{mail} } ); |
|
|
|
next if ( grep { $alias eq $_ } @{ $zim_users->{$user}->{mail} } ); |
|
|
|
log_verbose( "Creating alias $alias for user $user" ); |
|
|
|
log_verbose( "Creating alias $alias for user $user\@$domain" ); |
|
|
|
send_zmprov_cmd( "addAccountAlias $user $alias" ); |
|
|
|
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 |
|
|
|
# On each sync, we register the list of LDAP aliases into Zimbra's LDAP in the zimbraNotes attribute |
|
|
|