Ticket 48393 - Improve replication config validation
Bug Description: There was inconsistent behavior when modifying and adding replication
configurations and agreements. There were also a few places where
unsigned ints were used for values which made checking for negative
values impossible.
Fix Description: Added a new function to properly check "number" attribute values.
Also forced failure on the actual update if an invalid value was used
(previously we would log an error and use some default value). Also
made all the int types consistent.
https://pagure.io/389-ds-base/issue/48393
Reviewed by: firstyear(Thanks!)
(cherry picked from commit f6b0e1841059460d6d0071cc771e3fbe834af393)