Fix membership handling for rfc2307 style schema

master
Daniel Berteaud 6 years ago
parent 2f52692a8b
commit 3513978e90
  1. 6
      zmldapsync/zmldapsync.pl

@ -597,7 +597,11 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) {
if ( not yaml_bool( $conf->{domains}->{$domain}->{groups}->{members_as_dn} ) ) {
# If members are not listed as full DN, but by uid, simply concat it with the domain
foreach my $member ( $ext_groups->{$group}->{$conf->{domains}->{$domain}->{groups}->{members_attr}} ) {
foreach my $member ( @{ $ext_groups->{$group}->{$conf->{domains}->{$domain}->{groups}->{members_attr}} } ) {
if ( not defined $ext_users->{$member} ) {
log_verbose( "Skiping member $member of group $group as it doesn't match a Zimbra user" );
next;
}
next if ( not defined $ext_users->{$member} and
not defined $ext_groups->{$member} );
push @ext_members, $member . '@' . $domain;

Loading…
Cancel
Save