Do not use attr_maps defaults when some are provided in the config

master
Daniel Berteaud 5 years ago
parent 1fa3ccb2d7
commit 556172241b
  1. 5
      zmldapsync/zmldapsync.pl

@ -968,5 +968,10 @@ sub get_default_conf {
}
};
}
# If some attribute mapping is defined in the provided conf
# do not use defaults
foreach my $type ( qw( users groups ) ) {
$defaults->{$type}->{attr_map} = {} if ( defined $conf->{$type}->{attr_map} );
}
return merge $defaults, $conf;
}

Loading…
Cancel
Save