diff --git a/apps/activedirectory/local/mode/dfsrbacklog.pm b/apps/activedirectory/local/mode/dfsrbacklog.pm index 1247de6ec..5a6d5336b 100644 --- a/apps/activedirectory/local/mode/dfsrbacklog.pm +++ b/apps/activedirectory/local/mode/dfsrbacklog.pm @@ -53,6 +53,7 @@ sub new { $options{options}->add_options(arguments => { "sending-member:s" => { name => 'sending_member' }, + "receiving-member:s" => { name => 'receiving_member' }, "replication-group:s" => { name => 'replication_group' }, "replicated-folder:s" => { name => 'replicated_folder' }, "timeout:s" => { name => 'timeout', default => 30 }, @@ -73,6 +74,10 @@ sub check_options { $self->{output}->option_exit(); } $self->{option_results}->{command_options} .= '/SendingMember:' . $self->{option_results}->{sending_member} . ' '; + + if (defined($self->{option_results}->{receiving_member}) && $self->{option_results}->{receiving_member} ne '') { + $self->{option_results}->{command_options} .= '/ReceivingMember:' . $self->{option_results}->{receiving_member} . ' '; + } if (!defined($self->{option_results}->{replication_group}) || $self->{option_results}->{replication_group} eq '') { $self->{output}->add_option_msg(short_msg => "Need to specify replication-group option."); @@ -116,15 +121,19 @@ Check dfsr backlog. =item B<--sending-member> -Name of the member that is sending the replication data. +Name of the member that is sending the replication data. (Mandatory) + +=item B<--receiving-member> + +Name of the member that is receiving the replication data. (NOT Mandatory) =item B<--replication-group> -Name for the replication group. +Name for the replication group. (Mandatory) =item B<--replicated-folder> -Name name for the replicated folder. +Name name for the replicated folder. (Mandatory) =item B<--timeout>