Bug Description: During dsconf instance replication create-manager the command incorrectly modifies
all existing outbound agreements to use the new dn.
-- It is a surprise behaviour - the command only says it is creating a manager, not changing
configuration. It should only do that one thing.
-- The manager we are creating is for replicas to authenticate to this server, not for this server
to provide outbound replications. Changing the outbound agreements to use the DN of the user on
this server is incorrect
-- We are potentially trampling existing intent and configuration. Imagine I have server A and B.
On A I have "incoming manager B" and on B I have "incoming manager A". These agreements were
manually configured and existing. Adding the replication manager on A would break my outgoing
agreement to B now.
Fix Description: Remove the behaviour from the command. Some code cleanups
were also performed to use the get_arg which exists to help reduce boilerplate
throughout the codebase.
Bug Description: During dsconf instance replication create-manager the command incorrectly modifies
all existing outbound agreements to use the new dn.
-- It is a surprise behaviour - the command only says it is creating a manager, not changing
configuration. It should only do that one thing.
-- The manager we are creating is for replicas to authenticate to this server, not for this server
to provide outbound replications. Changing the outbound agreements to use the DN of the user on
this server is incorrect
-- We are potentially trampling existing intent and configuration. Imagine I have server A and B.
On A I have "incoming manager B" and on B I have "incoming manager A". These agreements were
manually configured and existing. Adding the replication manager on A would break my outgoing
agreement to B now.
Fix Description: Remove the behaviour from the command. Some code cleanups
were also performed to use the get_arg which exists to help reduce boilerplate
throughout the codebase.
https://pagure.io/389-ds-base/issue/50399
Author: William Brown william@blackhats.net.au
Review by: ???