Introduce Hub readonly replica
get_replica_type function

get_replica_type function was created to help recognize the type of a
specified replica
Improve replication setup
Improve ldap_mod function